Merge "tripleo_deploy/upgrade: fail of upgrade_tasks don't return 0"

This commit is contained in:
Zuul 2018-05-25 06:50:41 +00:00 committed by Gerrit Code Review
commit 59660a57f5
1 changed files with 2 additions and 0 deletions

View File

@ -828,6 +828,8 @@ class Deploy(command.Command):
# Run Upgrade tasks before the deployment
if parsed_args.upgrade:
rc = self._launch_ansible_upgrade(ansible_dir)
if rc != 0:
raise exceptions.DeploymentError('Upgrade failed')
rc = self._launch_ansible_deploy(ansible_dir)
except Exception as e:
self.log.error("Exception: %s" % e)