diff options
author | Michael Johnson <johnsomor@gmail.com> | 2022-06-03 23:28:08 +0000 |
---|---|---|
committer | Michael Johnson <johnsomor@gmail.com> | 2022-06-03 23:31:23 +0000 |
commit | fba1354e039809edaba9bbf0f31b3fe743aae36f (patch) | |
tree | 110f75eaf708b6e425d04ee0da40ecec47c39daf | |
parent | ef2098e6543019e0dc41344d704f56b6957e88b6 (diff) | |
download | python-designateclient-fba1354e039809edaba9bbf0f31b3fe743aae36f.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
-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())) |