Commit 767282df by Michael DeHaan

Small style fixes for indentation and spacing.

parent e36a52f0
......@@ -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
......
......@@ -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() + '/'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment