mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #6320 from angstwad/instance-redo
Use isinstance() rather than a check using type()
This commit is contained in:
commit
d2cb35f898
1 changed files with 1 additions and 1 deletions
|
@ -243,7 +243,7 @@ class Runner(object):
|
||||||
"""
|
"""
|
||||||
if complex_args is None:
|
if complex_args is None:
|
||||||
return module_args
|
return module_args
|
||||||
if type(complex_args) != dict:
|
if not isinstance(complex_args, dict):
|
||||||
raise errors.AnsibleError("complex arguments are not a dictionary: %s" % complex_args)
|
raise errors.AnsibleError("complex arguments are not a dictionary: %s" % complex_args)
|
||||||
for (k,v) in complex_args.iteritems():
|
for (k,v) in complex_args.iteritems():
|
||||||
if isinstance(v, basestring):
|
if isinstance(v, basestring):
|
||||||
|
|
Loading…
Reference in a new issue