Merge "Remove edit-managed from unsupported commands" into stable/xena
This commit is contained in:
commit
d10bb1356a
@ -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)
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user