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
parent 81286b8912
commit 6cfb44b4bb
7 changed files with 22 additions and 22 deletions

View file

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