From 767282df2a4fc489be590edc2acc105a3febc82b Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 21 Apr 2012 12:06:54 -0400 Subject: [PATCH] Small style fixes for indentation and spacing. --- lib/ansible/playbook.py | 2 +- lib/ansible/runner.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/ansible/playbook.py b/lib/ansible/playbook.py index ccb87291e0..1b8e557791 100755 --- a/lib/ansible/playbook.py +++ b/lib/ansible/playbook.py @@ -123,7 +123,7 @@ class PlayBook(object): # translate a list of vars into a dict if type(vars) == list: varlist = vars - vars = {} + vars = {} for item in varlist: k, v = item.items()[0] vars[k] = v diff --git a/lib/ansible/runner.py b/lib/ansible/runner.py index 0e4f0e09fb..c305126b34 100755 --- a/lib/ansible/runner.py +++ b/lib/ansible/runner.py @@ -280,7 +280,7 @@ class Runner(object): args = self._add_setup_metadata(args) if type(args) == dict: - args = utils.bigjson(args) + args = utils.bigjson(args) args = utils.template(args, inject) module_name_tail = remote_module_path.split("/")[-1] @@ -598,10 +598,10 @@ class Runner(object): basetmp = "/var/tmp" if self.remote_user != 'root': - basetmp = "/home/%s/.ansible/tmp" % self.remote_user + basetmp = "/home/%s/.ansible/tmp" % self.remote_user cmd = "mktemp -d %s/ansible.XXXXXX" % basetmp if self.remote_user != 'root': - cmd = "mkdir -p %s && %s" % (basetmp, cmd) + cmd = "mkdir -p %s && %s" % (basetmp, cmd) result, err = self._exec_command(conn, cmd, None, sudoable=False) cleaned = result.split("\n")[0].strip() + '/'