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:
sonu.kumar 2015-10-12 14:49:12 +05:30
parent f2192badc1
commit b8704aa832
1 changed files with 1 additions and 1 deletions

View File

@ -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)