Fix addition of newline for eos & nxos (#56227)

This commit is contained in:
Nathaniel Case 2019-05-08 12:28:04 -04:00 committed by GitHub
parent bceca72eb7
commit c5f3b778c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 2 deletions

View file

@ -604,6 +604,7 @@ def to_command(module, commands):
output=dict(default=default_output),
prompt=dict(type='list'),
answer=dict(type='list'),
newline=dict(type='bool', default=True),
sendonly=dict(type='bool', default=False),
check_all=dict(type='bool', default=False),
), module)

View file

@ -688,6 +688,7 @@ def to_command(module, commands):
output=dict(default=default_output),
prompt=dict(type='list'),
answer=dict(type='list'),
newline=dict(type='bool', default=True),
sendonly=dict(type='bool', default=False),
check_all=dict(type='bool', default=False),
), module)

View file

@ -160,8 +160,6 @@ from ansible.module_utils.network.common.utils import transform_commands, to_lin
from ansible.module_utils.network.eos.eos import run_commands
from ansible.module_utils.network.eos.eos import eos_argument_spec
VALID_KEYS = ['command', 'output', 'prompt', 'response']
def parse_commands(module, warnings):
commands = transform_commands(module)