mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
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:
@@ -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 []:
|
||||
|
||||
Reference in New Issue
Block a user