Merge pull request #2649 from sergevanginderachter/bin-ansible
make bin/ansible error output consistent for shell module as for the command module when no arguments are given
This commit is contained in:
commit
92ddab8a69
1 changed files with 3 additions and 2 deletions
|
@ -93,8 +93,9 @@ class Cli(object):
|
|||
print ' %s' % host
|
||||
sys.exit(0)
|
||||
|
||||
if options.module_name == 'command' and not options.module_args:
|
||||
print >>sys.stderr, "No argument passed to command module"
|
||||
if ((options.module_name == 'command' or options.module_name == 'shell')
|
||||
and not options.module_args):
|
||||
print >>sys.stderr, "No argument passed to %s module" % options.module_name
|
||||
sys.exit(1)
|
||||
|
||||
sshpass = None
|
||||
|
|
Loading…
Reference in a new issue