Browse Source

Fix an Armada wait error

Under some wait condition, Armada returns a tuple that contains an extraneous
element that causes a python error. This patch set fixes that so the method
always return a 2-tuple instead sometimes a 3-tuple.

Change-Id: I4c4dfcf03e63f03ad2adc083d39909cf4b47a27f
Signed-off-by: Tin Lam <tin@irrational.io>
Tin Lam 1 week ago
parent
commit
353b52f92b
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      armada/handlers/wait.py

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

@@ -520,7 +520,7 @@ class DeploymentWait(ControllerWait):
520 520
                 msg = ("Waiting for deployment {} rollout to finish: {} of {} "
521 521
                        "updated replicas are available, with min_ready={}")
522 522
                 return (msg.format(name, available_replicas, updated_replicas,
523
-                                   self.min_ready.source), False, None)
523
+                                   self.min_ready.source), False)
524 524
             msg = "deployment {} successfully rolled out\n"
525 525
             return (msg.format(name), True)
526 526
 

Loading…
Cancel
Save