From e75bb2d90e66310791b14c37210d51275c98d8f1 Mon Sep 17 00:00:00 2001 From: Drew Walters Date: Wed, 3 Apr 2019 15:46:12 +0000 Subject: [PATCH] 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 --- armada/handlers/wait.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/armada/handlers/wait.py b/armada/handlers/wait.py index 174d571d..ae8c627e 100644 --- a/armada/handlers/wait.py +++ b/armada/handlers/wait.py @@ -500,7 +500,7 @@ class DeploymentWait(ControllerWait): 'Progressing') if cond and (cond.reason or '') == 'ProgressDeadlineExceeded': msg = "deployment {} exceeded its progress deadline" - return ("", False, msg.format(name)) + return (msg.format(name), False) replicas = spec.replicas or 0 updated_replicas = status.updated_replicas or 0