Don't use deprecated exception.message in tripleo_deploy

This causes a deprecation warning and won't work on python 3

Change-Id: I6324a06a7364f5ff62dc31e26700549a5649a303
This commit is contained in:
Steven Hardy 2018-06-08 11:32:29 +01:00
parent 74abcc3559
commit d3106dbd99
1 changed files with 2 additions and 2 deletions

View File

@ -883,8 +883,8 @@ class Deploy(command.Command):
raise exceptions.DeploymentError('Upgrade failed')
rc = self._launch_ansible_deploy(ansible_dir)
except Exception as e:
self.log.error("Exception: %s" % e)
raise exceptions.DeploymentError(e.message)
self.log.error("Exception: %s" % six.text_type(e))
raise exceptions.DeploymentError(six.text_type(e))
finally:
self._kill_heat(parsed_args)
tar_filename = self._create_install_artifact()