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:31 +0000 |
| commit | 06887d653894dc539cc4af0652ee20ff2105f65d (patch) | |
| tree | bb225dbad8da72137bfc5682328e9c7568bdfcd8 /designateclient/v2 | |
| parent | f11c636f2d98cb2e32064cdf309ad5e580279110 (diff) | |
| download | python-designateclient-4.5.1.tar.gz | |
Fix missing --target-project-id for transfer req4.5.1
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)
Diffstat (limited to 'designateclient/v2')
| -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())) |
