diff options
author | Michael Johnson <johnsomor@gmail.com> | 2022-06-03 23:28:08 +0000 |
---|---|---|
committer | Michael Johnson <johnsomor@gmail.com> | 2022-06-08 22:02:41 +0000 |
commit | e5ec080ac1ebacc3cbace38ac81cba21559a1182 (patch) | |
tree | fcd5c3656b0b9d79444939b41275918ac8a3705e | |
parent | da7f4ca6276e49d366bb457b903d2fe21cdd614b (diff) | |
download | python-designateclient-e5ec080ac1ebacc3cbace38ac81cba21559a1182.tar.gz |
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
(cherry picked from commit fba1354e039809edaba9bbf0f31b3fe743aae36f)
-rw-r--r-- | designateclient/v2/cli/zones.py | 7 |
1 files changed, 7 insertions, 0 deletions
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())) |