mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
replace type() with isinstance() (#3404)
Replace use of type() with isinstance() Addresses https://github.com/ansible/ansible/issues/18310
This commit is contained in:
parent
81286b8912
commit
6cfb44b4bb
7 changed files with 22 additions and 22 deletions
|
@ -233,7 +233,7 @@ class OSXDefaults(object):
|
|||
def write(self):
|
||||
|
||||
# We need to convert some values so the defaults commandline understands it
|
||||
if type(self.value) is bool:
|
||||
if isinstance(self.value, bool):
|
||||
if self.value:
|
||||
value = "TRUE"
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue