replace type() with isinstance() (#3404)

Replace use of type() with isinstance()

Addresses https://github.com/ansible/ansible/issues/18310
This commit is contained in:
jctanner 2016-11-09 13:46:50 -05:00 committed by Matt Clay
commit 6cfb44b4bb
7 changed files with 22 additions and 22 deletions

View file

@ -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: