1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Small style fixes for indentation and spacing.

This commit is contained in:
Michael DeHaan 2012-04-21 12:06:54 -04:00
parent e36a52f06c
commit 767282df2a
2 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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() + '/'