diff options
author | Thomas Herve <therve@redhat.com> | 2017-03-24 16:42:32 +0100 |
---|---|---|
committer | Thomas Herve <therve@redhat.com> | 2017-03-24 16:43:21 +0100 |
commit | 34d3a000d29b8a51b69dd3e48f78f29e6a3bb57b (patch) | |
tree | 61381acda8b4c655c55e7ff895f2cc2fa59b1dc2 /heatclient/osc | |
parent | a795a9a30485a8b3f4e612a66eddfe2843efb306 (diff) | |
download | python-heatclient-34d3a000d29b8a51b69dd3e48f78f29e6a3bb57b.tar.gz |
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
Diffstat (limited to 'heatclient/osc')
-rw-r--r-- | heatclient/osc/v1/software_deployment.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/heatclient/osc/v1/software_deployment.py b/heatclient/osc/v1/software_deployment.py index 37abcb4..eccab42 100644 --- a/heatclient/osc/v1/software_deployment.py +++ b/heatclient/osc/v1/software_deployment.py @@ -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', |