mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-25 22:30:22 -07: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:
parent
2744fde7c9
commit
06e1141106
7 changed files with 17 additions and 17 deletions
|
@ -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 []:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue