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>
This commit is contained in:
Tin Lam 2019-04-06 23:17:22 -05:00
parent 163cacd973
commit 353b52f92b
1 changed files with 1 additions and 1 deletions

View File

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