summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchenaidong1 <chen.aidong@zte.com.cn>2017-09-23 13:52:36 +0800
committerchenaidong1 <chen.aidong@zte.com.cn>2017-09-23 05:59:36 +0000
commit3e71528e9ca0ee25dbef0cd7c40028e70b46aaca (patch)
tree1c2bb89be0322367ee0400b615ec8814437afa3e
parentaee30ad679c4f6bc6139f4afef5d9a93be655f31 (diff)
update env template output
When update with unexisting env template, the output contain '&lt;' and '&gt;'. murano env-template-update 849c781b2ef84a6a8961b520c11f7322 test 404 Not Found: EnvTemplate &lt;TempId 849c781b2ef84a6a8961b520c11f7322&gt; is not found (HTTP 404) Change-Id: Ifcbdc4cb5846de35e55fbeeaf21f9ce3d4748e36
Notes
Notes (review): Verified+1: Murano CI Code-Review+2: zhurong <aaronzhu1121@gmail.com> Code-Review+2: Felipe Monteiro <felipe.monteiro@att.com> Workflow+1: Felipe Monteiro <felipe.monteiro@att.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Wed, 04 Oct 2017 22:13:04 +0000 Reviewed-on: https://review.openstack.org/506830 Project: openstack/python-muranoclient Branch: refs/heads/master
-rw-r--r--muranoclient/v1/shell.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/muranoclient/v1/shell.py b/muranoclient/v1/shell.py
index 237c19f..9a203cc 100644
--- a/muranoclient/v1/shell.py
+++ b/muranoclient/v1/shell.py
@@ -474,7 +474,11 @@ def do_env_template_del_app(mc, args):
474 help="Environment template name.") 474 help="Environment template name.")
475def do_env_template_update(mc, args): 475def do_env_template_update(mc, args):
476 """Update an environment template.""" 476 """Update an environment template."""
477 env_template = mc.env_templates.update(args.id, args.name) 477 try:
478 env_template = mc.env_templates.update(args.id, args.name)
479 except common_exceptions.HTTPNotFound:
480 raise exceptions.CommandError("Environment template %s not found"
481 % args.id)
478 _print_env_template_list([env_template]) 482 _print_env_template_list([env_template])
479 483
480 484