mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -07:00
Fix incorrect use of is
for comparisons.
See https://bugs.python.org/issue34850 for details.
This commit is contained in:
parent
cd7a144515
commit
0a461380a3
21 changed files with 42 additions and 42 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue