mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
more cleanup from net_command module that is abandoned for 2.3 (#21497)
This commit is contained in:
parent
87646595e3
commit
d3b57a2f9c
2 changed files with 4 additions and 5 deletions
|
@ -386,8 +386,8 @@ DIFF_CONTEXT = get_config(p, 'diff', 'context', 'ANSIBLE_DIFF_CONTEXT', 3, value
|
|||
DIFF_ALWAYS = get_config(p, 'diff', 'always', 'ANSIBLE_DIFF_ALWAYS', False, value_type='bool')
|
||||
|
||||
# non-configurable things
|
||||
MODULE_REQUIRE_ARGS = ['command', 'win_command', 'net_command', 'shell', 'win_shell', 'raw', 'script']
|
||||
MODULE_NO_JSON = ['command', 'win_command', 'net_command', 'shell', 'win_shell', 'raw']
|
||||
MODULE_REQUIRE_ARGS = ['command', 'win_command', 'shell', 'win_shell', 'raw', 'script']
|
||||
MODULE_NO_JSON = ['command', 'win_command', 'shell', 'win_shell', 'raw']
|
||||
DEFAULT_BECOME_PASS = None
|
||||
DEFAULT_PASSWORD_CHARS = to_text(ascii_letters + digits + ".,:-_", errors='strict') # characters included in auto-generated passwords
|
||||
DEFAULT_SUDO_PASS = None
|
||||
|
|
|
@ -31,7 +31,6 @@ from ansible.template import Templar
|
|||
RAW_PARAM_MODULES = ([
|
||||
'command',
|
||||
'win_command',
|
||||
'net_command',
|
||||
'shell',
|
||||
'win_shell',
|
||||
'script',
|
||||
|
@ -165,7 +164,7 @@ class ModuleArgsParser:
|
|||
|
||||
# only internal variables can start with an underscore, so
|
||||
# we don't allow users to set them directy in arguments
|
||||
if args and action not in ('command', 'net_command', 'win_command', 'shell', 'win_shell', 'script', 'raw'):
|
||||
if args and action not in ('command', 'win_command', 'shell', 'win_shell', 'script', 'raw'):
|
||||
for arg in args:
|
||||
arg = to_text(arg)
|
||||
if arg.startswith('_ansible_'):
|
||||
|
@ -196,7 +195,7 @@ class ModuleArgsParser:
|
|||
args = thing
|
||||
elif isinstance(thing, string_types):
|
||||
# form is like: copy: src=a dest=b
|
||||
check_raw = action in ('command', 'net_command', 'win_command', 'shell', 'win_shell', 'script', 'raw')
|
||||
check_raw = action in ('command', 'win_command', 'shell', 'win_shell', 'script', 'raw')
|
||||
args = parse_kv(thing, check_raw=check_raw)
|
||||
elif thing is None:
|
||||
# this can happen with modules which take no params, like ping:
|
||||
|
|
Loading…
Reference in a new issue