Fix indentation

This commit is contained in:
Michael DeHaan 2012-08-11 18:39:09 -04:00
parent 67301c1015
commit 75bbd73173
3 changed files with 4 additions and 4 deletions

View file

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

View 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])

View file

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