replace type() with isinstance() (#5541)

Replace all use of type() with isintance()

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

View file

@ -1307,7 +1307,7 @@ class DockerManager(object):
for name, value in self.module.params.get('labels').iteritems():
expected_labels[name] = str(value)
if type(container['Config']['Labels']) is dict:
if isinstance(container['Config']['Labels'], dict):
actual_labels = container['Config']['Labels']
else:
for container_label in container['Config']['Labels'] or []: