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

reviewable/pr18780/r1
Michael DeHaan 14 years ago
parent 62e082a1c7
commit 51e85b4bde

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

Loading…
Cancel
Save