From a975852f668dc1e9985bd46215cbbd5f125e7a04 Mon Sep 17 00:00:00 2001 From: Jeroen Hoekx Date: Fri, 13 Apr 2012 15:30:21 +0200 Subject: [PATCH] Module_arguments can be unicode. --- lib/ansible/runner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/runner.py b/lib/ansible/runner.py index f40dfa3262..3ae546bdcc 100755 --- a/lib/ansible/runner.py +++ b/lib/ansible/runner.py @@ -119,7 +119,7 @@ class Runner(object): euid = pwd.getpwuid(os.geteuid())[0] if self.transport == 'local' and self.remote_user != euid: raise Exception("User mismatch: expected %s, but is %s" % (self.remote_user, euid)) - if type(self.module_args) != str and type(self.module_args) != dict: + if type(self.module_args) not in [str, unicode, dict]: raise Exception("module_args must be a string or dict: %s" % self.module_args) self._tmp_paths = {}