From deb532c367f0beb41553e028a03def50f05a2ff9 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Fri, 2 May 2014 12:52:36 -0500 Subject: [PATCH] Remove OrderedDict references from runner Fixes #7256 --- lib/ansible/runner/__init__.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/ansible/runner/__init__.py b/lib/ansible/runner/__init__.py index bb661a0c52a..feda312456e 100644 --- a/lib/ansible/runner/__init__.py +++ b/lib/ansible/runner/__init__.py @@ -287,10 +287,10 @@ class Runner(object): def _compute_environment_string(self, inject=None): ''' what environment variables to use when running the command? ''' - default_environment = collections.OrderedDict([ - ('LANG', C.DEFAULT_MODULE_LANG), - ('LC_CTYPE', C.DEFAULT_MODULE_LANG), - ]) + default_environment = dict( + LANG = C.DEFAULT_MODULE_LANG, + LC_CTYPE = C.DEFAULT_MODULE_LANG, + ) if self.environment: enviro = template.template(self.basedir, self.environment, inject, convert_bare=True) @@ -301,7 +301,7 @@ class Runner(object): result = "" for (k,v) in default_environment.iteritems(): - result = "%s %s=%s" % (result, k, pipes.quote(unicode(v))) + result = "%s=%s %s" % (k, pipes.quote(unicode(v)), result) return result # *****************************************************