summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael DeHaan <michael.dehaan@gmail.com>2012-08-02 20:29:18 -0400
committerMichael DeHaan <michael.dehaan@gmail.com>2012-08-02 20:29:18 -0400
commit05df6464ef70705beae97b0e5d3807b4bc37de72 (patch)
treefcba6ed2fc4093647b5644168ba546cc00d62f61
parentb76efa39be063dd15da8d4eabc310eb0f673e295 (diff)
downloadansible-05df6464ef70705beae97b0e5d3807b4bc37de72.tar.gz
Make module args as unicode more or less not choke.
-rw-r--r--lib/ansible/runner/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py
index ee452e4325..2881a261fa 100644
--- a/lib/ansible/runner/__init__.py
+++ b/lib/ansible/runner/__init__.py
@@ -700,7 +700,7 @@ class Runner(object):
if module_common.REPLACER in module_data:
is_new_style=True
module_data = module_data.replace(module_common.REPLACER, module_common.MODULE_COMMON)
- encoded_args = base64.b64encode(utils.template(self.module_args, inject))
+ encoded_args = base64.b64encode(utils.template(self.module_args, inject).encode('utf-8'))
module_data = module_data.replace(module_common.REPLACER_ARGS, encoded_args)
# use the correct python interpreter for the host