diff options
author | Zuul <zuul@review.opendev.org> | 2023-02-21 05:29:36 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2023-02-21 05:29:36 +0000 |
commit | a95d0920c3b6709626b8316b785f65cbd712fc1f (patch) | |
tree | 8d9750568bba88405ae52c55457ecaf128a6504e /designateclient/v2/cli/common.py | |
parent | bc39d23ff5ff45e7669cb4be9d2c28b9242cf9d9 (diff) | |
parent | 34292ee649e038631b39fb6bb969a83e6e901ff1 (diff) | |
download | python-designateclient-a95d0920c3b6709626b8316b785f65cbd712fc1f.tar.gz |
Merge "Add hacking check for line continuation backslash"
Diffstat (limited to 'designateclient/v2/cli/common.py')
-rw-r--r-- | designateclient/v2/cli/common.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/designateclient/v2/cli/common.py b/designateclient/v2/cli/common.py index f8dbdfa..564af0d 100644 --- a/designateclient/v2/cli/common.py +++ b/designateclient/v2/cli/common.py @@ -74,20 +74,20 @@ def set_hard_delete(client, value): def set_all_common_headers(client, parsed_args): - if parsed_args.all_projects is not None and \ - isinstance(parsed_args.all_projects, bool): + if (parsed_args.all_projects is not None and + isinstance(parsed_args.all_projects, bool)): set_all_projects(client, parsed_args.all_projects) - if hasattr(parsed_args, 'edit_managed') and \ - parsed_args.edit_managed is not None and \ - isinstance(parsed_args.edit_managed, bool): + 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) - if parsed_args.sudo_project_id is not None and \ - isinstance(parsed_args.sudo_project_id, str): + if (parsed_args.sudo_project_id is not None and + isinstance(parsed_args.sudo_project_id, str)): set_sudo_project_id(client, parsed_args.sudo_project_id) - if hasattr(parsed_args, 'hard_delete') and \ - parsed_args.hard_delete is not None and \ - isinstance(parsed_args.hard_delete, bool): + if (hasattr(parsed_args, 'hard_delete') and + parsed_args.hard_delete is not None and + isinstance(parsed_args.hard_delete, bool)): set_hard_delete(client, parsed_args.hard_delete) |