Fixes exception message for zone creation command
This patch fixes exception message which is raises while 'openstack zone create' command is provided with incorrect type. Change-Id: If3a84ee5bec0d7f72edc75ebfcc3aeeadfc83c69 Closes-Bug: #1505142
This commit is contained in:
parent
f2192badc1
commit
b8704aa832
@ -115,7 +115,7 @@ class CreateZoneCommand(show.ShowOne):
|
||||
else:
|
||||
msg = "Type %s is not supported. Please choose between " \
|
||||
"PRIMARY or SECONDARY"
|
||||
raise osc_exc.CommandError(msg)
|
||||
raise osc_exc.CommandError(msg % parsed_args.type)
|
||||
|
||||
data = client.zones.create(
|
||||
parsed_args.name, parsed_args.type, **payload)
|
||||
|
Loading…
x
Reference in New Issue
Block a user