Skip to content

Commit 8353b3c

Browse files
author
huangtianhua
committed
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
1 parent aec9363 commit 8353b3c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

novaclient/v2/shell.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4728,7 +4728,7 @@ def do_server_tag_add(cs, args):
47284728
lambda t: server.add_tag(t),
47294729
args.tag,
47304730
_("Request to add tag %s to specified server has been accepted."),
4731-
_("Unable to add tag %s to the specified server."))
4731+
_("Unable to add the specified tag to the server."))
47324732

47334733

47344734
@api_versions.wraps("2.26")
@@ -4750,7 +4750,7 @@ def do_server_tag_delete(cs, args):
47504750
lambda t: server.delete_tag(t),
47514751
args.tag,
47524752
_("Request to delete tag %s from specified server has been accepted."),
4753-
_("Unable to delete tag %s from specified server."))
4753+
_("Unable to delete the specified tag from the server."))
47544754

47554755

47564756
@api_versions.wraps("2.26")

0 commit comments

Comments
 (0)