From 34d3a000d29b8a51b69dd3e48f78f29e6a3bb57b Mon Sep 17 00:00:00 2001 From: Thomas Herve Date: Fri, 24 Mar 2017 16:42:32 +0100 Subject: 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 --- heatclient/osc/v1/software_deployment.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'heatclient/osc') 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', -- cgit v1.2.1