Make module args as unicode more or less not choke.

pull/4420/head
Michael DeHaan 2012-08-02 20:29:18 -04:00
parent b76efa39be
commit 05df6464ef
1 changed files with 1 additions and 1 deletions

View File

@ -700,7 +700,7 @@ class Runner(object):
if module_common.REPLACER in module_data: if module_common.REPLACER in module_data:
is_new_style=True is_new_style=True
module_data = module_data.replace(module_common.REPLACER, module_common.MODULE_COMMON) 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) module_data = module_data.replace(module_common.REPLACER_ARGS, encoded_args)
# use the correct python interpreter for the host # use the correct python interpreter for the host