From fba1354e039809edaba9bbf0f31b3fe743aae36f Mon Sep 17 00:00:00 2001 From: Michael Johnson Date: Fri, 3 Jun 2022 23:28:08 +0000 Subject: 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 --- designateclient/v2/cli/zones.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/designateclient/v2/cli/zones.py b/designateclient/v2/cli/zones.py index 9eda63e..cf777ed 100644 --- a/designateclient/v2/cli/zones.py +++ b/designateclient/v2/cli/zones.py @@ -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())) -- cgit v1.2.1