tripleo_deploy: finish the loop of operations early if wrong rc
If one of the operations running Ansible playbooks returns a wrong rc, leave the loop and go to final tasks before raising. It'll prevent the upgrade tasks to fail but the other playbooks (e.g. deploy) to keep running. Closes-Bug: #1869230 Change-Id: I5b1bb964ed290c860e66074202c45d7dd09bf29c
This commit is contained in:
parent
62c43e7626
commit
9c655a97b7
|
@ -1323,6 +1323,8 @@ class Deploy(command.Command):
|
||||||
fail_on_rc=False,
|
fail_on_rc=False,
|
||||||
**operation
|
**operation
|
||||||
)[0]
|
)[0]
|
||||||
|
if rc != 0:
|
||||||
|
break
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
self.log.error("Exception: %s" % six.text_type(e))
|
self.log.error("Exception: %s" % six.text_type(e))
|
||||||
self.log.error(traceback.print_exc())
|
self.log.error(traceback.print_exc())
|
||||||
|
|
Loading…
Reference in New Issue