wait: Fix deployment progress deadline message

If a progress deadline is exceeded while waiting on deployments, Armada
returns three values when two are expected, resulting in a ValueError
exception. This change properly formats the return value.

Change-Id: I49e6c2a022b3bb9bf8d6a01cd2ef261f52eaa426
This commit is contained in:
Drew Walters 2019-04-03 15:46:12 +00:00
parent 0428b4ec7e
commit e75bb2d90e
1 changed files with 1 additions and 1 deletions

View File

@ -500,7 +500,7 @@ class DeploymentWait(ControllerWait):
'Progressing') 'Progressing')
if cond and (cond.reason or '') == 'ProgressDeadlineExceeded': if cond and (cond.reason or '') == 'ProgressDeadlineExceeded':
msg = "deployment {} exceeded its progress deadline" msg = "deployment {} exceeded its progress deadline"
return ("", False, msg.format(name)) return (msg.format(name), False)
replicas = spec.replicas or 0 replicas = spec.replicas or 0
updated_replicas = status.updated_replicas or 0 updated_replicas = status.updated_replicas or 0