Skip to content

Commit

Permalink
expiration_time: can be any time, not just hours
Browse files Browse the repository at this point in the history
  • Loading branch information
myakove committed Jul 17, 2023
1 parent 62d6609 commit 5e9e0b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/libs/rosa_clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,9 +221,10 @@ def prepare_managed_clusters_data(clusters, ocm_token, ocm_env):

expiration_time = _cluster.get("expiration-time")
if expiration_time:
_expiration_time = tts(ts=expiration_time)
_cluster[
"expiration-time"
] = f"{(datetime.now() + timedelta(hours=expiration_time)).isoformat()}Z"
] = f"{(datetime.now() + timedelta(seconds=_expiration_time)).isoformat()}Z"

return clusters

Expand Down

0 comments on commit 5e9e0b5

Please sign in to comment.