Fix indentation
This commit is contained in:
parent
331ee3a0a4
commit
ed449ed3e2
3 changed files with 4 additions and 4 deletions
4
command
4
command
|
@ -91,8 +91,8 @@ class CommandModule(AnsibleModule):
|
|||
params['chdir'] = None
|
||||
params['shell'] = False
|
||||
if args.find("#USE_SHELL") != -1:
|
||||
args = args.replace("#USE_SHELL", "")
|
||||
params['shell'] = True
|
||||
args = args.replace("#USE_SHELL", "")
|
||||
params['shell'] = True
|
||||
|
||||
check_args = shlex.split(args)
|
||||
for x in check_args:
|
||||
|
|
2
file
2
file
|
@ -200,7 +200,7 @@ def set_mode_if_different(path, mode, changed):
|
|||
try:
|
||||
os.chmod(path, mode)
|
||||
except Exception, e:
|
||||
module_fail_json(path=path, msg='chmod failed', details=str(e))
|
||||
module_fail_json(path=path, msg='chmod failed', details=str(e))
|
||||
|
||||
st = os.stat(path)
|
||||
new_mode = stat.S_IMODE(st[stat.ST_MODE])
|
||||
|
|
2
get_url
2
get_url
|
@ -62,7 +62,7 @@ def url_do_get(module, url, dest):
|
|||
actualdest = "%s/%s" % (dest, urlfilename)
|
||||
module.params['path'] = actualdest
|
||||
else:
|
||||
actualdest = dest
|
||||
actualdest = dest
|
||||
info['daisychain_args'] = module.params
|
||||
info['daisychain_args']['state'] = 'file'
|
||||
info['daisychain_args']['dest'] = actualdest
|
||||
|
|
Loading…
Reference in a new issue