Browse Source

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
Drew Walters 2 weeks ago
parent
commit
e75bb2d90e
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      armada/handlers/wait.py

+ 1
- 1
armada/handlers/wait.py View File

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

Loading…
Cancel
Save