Fix missing --target-project-id for transfer req
The zone transfer request set command was missing the --target-project-id option so you cannot change the target project ID of a zone transfer request after creation with the CLI. This option is supported by the API and documented in the API reference guide. This patch adds this option. Closes-Bug: #1977625 Change-Id: Idd570a5aef57c06971db2450fdfb823cf0c07bfd
This commit is contained in:
parent
ef2098e654
commit
fba1354e03
|
@ -381,6 +381,10 @@ class SetTransferRequestCommand(command.ShowOne):
|
|||
description_group.add_argument('--description', help="Description")
|
||||
description_group.add_argument('--no-description', action='store_true')
|
||||
|
||||
parser.add_argument(
|
||||
'--target-project-id',
|
||||
help="Target Project ID to transfer to.")
|
||||
|
||||
common.add_all_common_options(parser)
|
||||
|
||||
return parser
|
||||
|
@ -396,6 +400,9 @@ class SetTransferRequestCommand(command.ShowOne):
|
|||
elif parsed_args.description:
|
||||
data['description'] = parsed_args.description
|
||||
|
||||
if parsed_args.target_project_id:
|
||||
data['target_project_id'] = parsed_args.target_project_id
|
||||
|
||||
updated = client.zone_transfers.update_request(parsed_args.id, data)
|
||||
return zip(*sorted(updated.items()))
|
||||
|
||||
|
|
Loading…
Reference in New Issue