Skip to content

Commit

Permalink
update version label
Browse files Browse the repository at this point in the history
  • Loading branch information
Moshe Reubinoff committed Jul 20, 2023
1 parent 4948000 commit 232f28e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ def is_env_ready(env_status: EnvironmentStatus, app_version_label: str) -> bool:
"""
Check if environment is ready"""
print(f"Checking if environment {env_status} is ready. Expected version: {app_version_label}")
version_is_ok = env_status.version_label == app_version_label and app_version_label is not None
if app_version_label is None:
version_is_ok = env_status.version_label == app_version_label and (app_version_label is not None or app_version_label != "")
if app_version_label is None or app_version_label == "":
version_is_ok = True # no version check required
print(f"Version is ok: {version_is_ok}")
status_is_ok = env_status.status == READY_STATUS
Expand Down

0 comments on commit 232f28e

Please sign in to comment.