Skip to content

Commit

Permalink
Also catch the case where status.marathon or status.kubernetes is None.
Browse files Browse the repository at this point in the history
  • Loading branch information
EvanKrall committed Oct 23, 2020
1 parent c6e912d commit 49ad1fd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions paasta_tools/cli/cmds/mark_for_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -1214,11 +1214,13 @@ def _run_instance_worker(cluster_data, instances_out, green_light):
long_running_status = None
if status:
try:
long_running_status = status.marathon
if status.marathon:
long_running_status = status.marathon
except ApiAttributeError:
pass
try:
long_running_status = status.kubernetes
if status.kubernetes:
long_running_status = status.kubernetes
except ApiAttributeError:
pass
if not status:
Expand Down

0 comments on commit 49ad1fd

Please sign in to comment.