mirror of https://github.com/ansible/ansible.git
Merge a9605e33a5
into a7e666829e
commit
383dfc7028
@ -0,0 +1,2 @@
|
||||
bugfixes:
|
||||
- shell module - parameter-oriented invocation using 'cmd' was silently failing. Fix now adds 'cmd' argument in shell module and creates centralized list of options for usage in `splitter.py` (https://github.com/ansible/ansible/issues/73005).
|
@ -0,0 +1,25 @@
|
||||
# Simplified BSD License (see licenses/simplified_bsd.txt or https://opensource.org/licenses/BSD-2-Clause)
|
||||
|
||||
from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
|
||||
|
||||
def get_command_args():
|
||||
'''
|
||||
The function for a centralised list for retrieval of shell module options
|
||||
'''
|
||||
return dict(
|
||||
_raw_params=dict(),
|
||||
_uses_shell=dict(type='bool', default=False),
|
||||
argv=dict(type='list', elements='str'),
|
||||
chdir=dict(type='path'),
|
||||
executable=dict(),
|
||||
expand_argument_vars=dict(type='bool', default=True),
|
||||
creates=dict(type='path'),
|
||||
removes=dict(type='path'),
|
||||
# The default for this really comes from the action plugin
|
||||
stdin=dict(required=False),
|
||||
stdin_add_newline=dict(type='bool', default=True),
|
||||
strip_empty_ends=dict(type='bool', default=True),
|
||||
cmd=dict(),
|
||||
)
|
Loading…
Reference in New Issue