Commit 75bbd731 by Michael DeHaan

Fix indentation

parent 67301c10
...@@ -91,8 +91,8 @@ class CommandModule(AnsibleModule): ...@@ -91,8 +91,8 @@ class CommandModule(AnsibleModule):
params['chdir'] = None params['chdir'] = None
params['shell'] = False params['shell'] = False
if args.find("#USE_SHELL") != -1: if args.find("#USE_SHELL") != -1:
args = args.replace("#USE_SHELL", "") args = args.replace("#USE_SHELL", "")
params['shell'] = True params['shell'] = True
check_args = shlex.split(args) check_args = shlex.split(args)
for x in check_args: for x in check_args:
......
...@@ -200,7 +200,7 @@ def set_mode_if_different(path, mode, changed): ...@@ -200,7 +200,7 @@ def set_mode_if_different(path, mode, changed):
try: try:
os.chmod(path, mode) os.chmod(path, mode)
except Exception, e: 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) st = os.stat(path)
new_mode = stat.S_IMODE(st[stat.ST_MODE]) new_mode = stat.S_IMODE(st[stat.ST_MODE])
......
...@@ -62,7 +62,7 @@ def url_do_get(module, url, dest): ...@@ -62,7 +62,7 @@ def url_do_get(module, url, dest):
actualdest = "%s/%s" % (dest, urlfilename) actualdest = "%s/%s" % (dest, urlfilename)
module.params['path'] = actualdest module.params['path'] = actualdest
else: else:
actualdest = dest actualdest = dest
info['daisychain_args'] = module.params info['daisychain_args'] = module.params
info['daisychain_args']['state'] = 'file' info['daisychain_args']['state'] = 'file'
info['daisychain_args']['dest'] = actualdest info['daisychain_args']['dest'] = actualdest
......
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