Commit 9650c118 by Richard C Isaacson Committed by Michael DeHaan

Formating and syntax fixes that were pointed out during code review.

parent ec04e301
...@@ -112,7 +112,7 @@ def main(): ...@@ -112,7 +112,7 @@ def main():
if rc != 0: if rc != 0:
module.fail_json(msg=err) module.fail_json(msg=err)
os.unlink(path) os.unlink(path)
result['changed'] = 'true' result['changed'] = True
elif script_file: elif script_file:
result['script_file'] = script_file result['script_file'] = script_file
at_command = "%s now + %s %s -f %s" % (ATCMD, unit_count, unit_type, script_file) at_command = "%s now + %s %s -f %s" % (ATCMD, unit_count, unit_type, script_file)
...@@ -122,7 +122,7 @@ def main(): ...@@ -122,7 +122,7 @@ def main():
rc, out, err = module.run_command(at_command) rc, out, err = module.run_command(at_command)
if rc != 0: if rc != 0:
module.fail_json(msg=err) module.fail_json(msg=err)
result['changed'] = 'true' result['changed'] = True
else: else:
module.fail_json(msg="command or script_file not specified") module.fail_json(msg="command or script_file not specified")
......
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