mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-10-07 08:54:01 -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
|
@ -226,7 +226,7 @@ def main():
|
|||
# All freestyle params are zfs properties
|
||||
if prop not in module.argument_spec:
|
||||
# Reverse the boolification of freestyle zfs properties
|
||||
if type(value) == bool:
|
||||
if isinstance(value, bool):
|
||||
if value is True:
|
||||
properties[prop] = 'on'
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue