Commit c93df292 by Michael DeHaan

Make a more logical error when the command/shell module is used with no arguments.

parent d35e930f
......@@ -35,6 +35,8 @@ def main():
chdir = module.params['chdir']
args = module.params['args']
if args.strip() == '':
module.fail_json(msg="no command given")
if chdir:
os.chdir(chdir)
......
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