Merge "Remove edit-managed from unsupported commands" into stable/xena

This commit is contained in:
Zuul 2022-06-09 23:42:45 +00:00 committed by Gerrit Code Review
commit d10bb1356a
2 changed files with 4 additions and 2 deletions

View File

@ -43,7 +43,6 @@ def add_sudo_project_id_option(parser):
def add_all_common_options(parser):
add_all_projects_option(parser)
add_edit_managed_option(parser)
add_sudo_project_id_option(parser)
@ -65,7 +64,8 @@ def set_all_common_headers(client, parsed_args):
isinstance(parsed_args.all_projects, bool):
set_all_projects(client, parsed_args.all_projects)
if parsed_args.edit_managed is not None and \
if hasattr(parsed_args, 'edit_managed') and \
parsed_args.edit_managed is not None and \
isinstance(parsed_args.edit_managed, bool):
set_edit_managed(client, parsed_args.edit_managed)

View File

@ -211,6 +211,7 @@ class SetRecordSetCommand(command.ShowOne):
ttl_group.add_argument('--no-ttl', action='store_true')
common.add_all_common_options(parser)
common.add_edit_managed_option(parser)
return parser
@ -258,6 +259,7 @@ class DeleteRecordSetCommand(command.ShowOne):
parser.add_argument('id', help="RecordSet ID")
common.add_all_common_options(parser)
common.add_edit_managed_option(parser)
return parser