From 3cce3650e59b457efabeca60508a965394539057 Mon Sep 17 00:00:00 2001 From: Paul Durivage Date: Wed, 5 Mar 2014 14:38:47 -0600 Subject: [PATCH] Use isinstance() rather than a check using type() --- lib/ansible/runner/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index 7bbc9e372e1..1bf4673054e 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -243,7 +243,7 @@ class Runner(object): """ if complex_args is None: 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) for (k,v) in complex_args.iteritems(): if isinstance(v, basestring):