Small style fixes for indentation and spacing.
This commit is contained in:
parent
e36a52f06c
commit
767282df2a
2 changed files with 4 additions and 4 deletions
|
@ -123,7 +123,7 @@ class PlayBook(object):
|
||||||
# translate a list of vars into a dict
|
# translate a list of vars into a dict
|
||||||
if type(vars) == list:
|
if type(vars) == list:
|
||||||
varlist = vars
|
varlist = vars
|
||||||
vars = {}
|
vars = {}
|
||||||
for item in varlist:
|
for item in varlist:
|
||||||
k, v = item.items()[0]
|
k, v = item.items()[0]
|
||||||
vars[k] = v
|
vars[k] = v
|
||||||
|
|
|
@ -280,7 +280,7 @@ class Runner(object):
|
||||||
args = self._add_setup_metadata(args)
|
args = self._add_setup_metadata(args)
|
||||||
|
|
||||||
if type(args) == dict:
|
if type(args) == dict:
|
||||||
args = utils.bigjson(args)
|
args = utils.bigjson(args)
|
||||||
args = utils.template(args, inject)
|
args = utils.template(args, inject)
|
||||||
|
|
||||||
module_name_tail = remote_module_path.split("/")[-1]
|
module_name_tail = remote_module_path.split("/")[-1]
|
||||||
|
@ -598,10 +598,10 @@ class Runner(object):
|
||||||
|
|
||||||
basetmp = "/var/tmp"
|
basetmp = "/var/tmp"
|
||||||
if self.remote_user != 'root':
|
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
|
cmd = "mktemp -d %s/ansible.XXXXXX" % basetmp
|
||||||
if self.remote_user != 'root':
|
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)
|
result, err = self._exec_command(conn, cmd, None, sudoable=False)
|
||||||
cleaned = result.split("\n")[0].strip() + '/'
|
cleaned = result.split("\n")[0].strip() + '/'
|
||||||
|
|
Loading…
Reference in a new issue