mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Fix incorrect use of is for comparisons.
See https://bugs.python.org/issue34850 for details.
This commit is contained in:
@@ -196,7 +196,7 @@ def _choose_id_value(module):
|
||||
|
||||
|
||||
def _choose_if_password_only(module, patch):
|
||||
if len(patch) is 1:
|
||||
if len(patch) == 1:
|
||||
if 'password' in patch[0]['path'] and module.params['skip_update_of_masked_password']:
|
||||
# Return false to abort update as the password appears
|
||||
# to be the only element in the patch.
|
||||
|
||||
@@ -259,7 +259,7 @@ def main():
|
||||
timeout = module.params['timeout']
|
||||
|
||||
# User has reqeusted desired state to be in maintenance state.
|
||||
if module.params['state'] is 'maintenance':
|
||||
if module.params['state'] == 'maintenance':
|
||||
module.params['maintenance'] = True
|
||||
|
||||
if node['provision_state'] in [
|
||||
|
||||
Reference in New Issue
Block a user