Fix error message when deployment not found

This fixes the error messages when trying to do a openstack software
deployment show with a wrong id.

Change-Id: I23c427e33b28b327563769106fcadd20ff599454
This commit is contained in:
Thomas Herve 2017-03-24 16:42:32 +01:00
parent a795a9a304
commit 34d3a000d2
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',