Merge "Fix error message when deployment not found"

This commit is contained in:
Jenkins 2017-03-27 04:55:19 +00:00 committed by Gerrit Code Review
commit abe0d62a78
1 changed files with 3 additions and 1 deletions

View File

@ -246,7 +246,9 @@ class ShowDeployment(command.ShowOne):
data = heat_client.software_deployments.get(
deployment_id=parsed_args.deployment)
except heat_exc.HTTPNotFound:
raise exc.CommandError(_('Software Deployment not found: %s') % id)
raise exc.CommandError(
_('Software Deployment not found: %s')
% parsed_args.deployment)
else:
columns = [
'id',