Merge "tripleo_deploy/upgrade: fail of upgrade_tasks don't return 0"
This commit is contained in:
commit
59660a57f5
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue