From 8353b3c897b5f7e5e5575c207a4f3a61beb18d53 Mon Sep 17 00:00:00 2001 From: huangtianhua Date: Fri, 4 Aug 2017 10:12:16 +0800 Subject: [PATCH] Remove substitutions for command error msg For server_tag_add and server_tag_delete commands, the substitution in the command error message doesn't work, this change removes the substitutions, and to tell user the 'specified' tag can not be added or deleted is enough, like other commands do. Change-Id: I7a9c9103d4fc88e1b82458f6ccc9738c6aa0315c Closes-Bug: #1708408 --- novaclient/v2/shell.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/novaclient/v2/shell.py b/novaclient/v2/shell.py index 708a649bf..45daaf1f2 100644 --- a/novaclient/v2/shell.py +++ b/novaclient/v2/shell.py @@ -4728,7 +4728,7 @@ def do_server_tag_add(cs, args): lambda t: server.add_tag(t), args.tag, _("Request to add tag %s to specified server has been accepted."), - _("Unable to add tag %s to the specified server.")) + _("Unable to add the specified tag to the server.")) @api_versions.wraps("2.26") @@ -4750,7 +4750,7 @@ def do_server_tag_delete(cs, args): lambda t: server.delete_tag(t), args.tag, _("Request to delete tag %s from specified server has been accepted."), - _("Unable to delete tag %s from specified server.")) + _("Unable to delete the specified tag from the server.")) @api_versions.wraps("2.26")