Merge "Show detailed message of neutron exception"

This commit is contained in:
Zuul
2017-11-16 00:03:34 +00:00
committed by Gerrit Code Review

View File

@@ -191,6 +191,8 @@ class NetworkAndComputeShowOne(command.ShowOne):
self.app.client_manager.compute, parsed_args) self.app.client_manager.compute, parsed_args)
except openstack.exceptions.HttpException as exc: except openstack.exceptions.HttpException as exc:
msg = _("Error while executing command: %s") % exc.message msg = _("Error while executing command: %s") % exc.message
if exc.details:
msg += ", " + six.text_type(exc.details)
raise exceptions.CommandError(msg) raise exceptions.CommandError(msg)
def get_parser(self, prog_name): def get_parser(self, prog_name):