Merge "Removes --name argument from zone set command"

This commit is contained in:
Jenkins 2015-11-04 22:12:53 +00:00 committed by Gerrit Code Review
commit 24746eae44

View File

@ -153,7 +153,6 @@ class SetZoneCommand(show.ShowOne):
parser = super(SetZoneCommand, self).get_parser(prog_name)
parser.add_argument('id', help="Zone ID")
parser.add_argument('--name', help="Zone Name")
parser.add_argument('--email', help="Zone Email")
parser.add_argument('--ttl', type=int, help="Time To Live (Seconds)")
description_group = parser.add_mutually_exclusive_group()
@ -170,9 +169,6 @@ class SetZoneCommand(show.ShowOne):
data = {}
# TODO(kiall): API needs updating.. this get is silly
if parsed_args.name:
data['name'] = parsed_args.name
if parsed_args.email:
data['email'] = parsed_args.email