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

pull/56235/head
Nathaniel Case 6 years ago committed by GitHub
parent bceca72eb7
commit c5f3b778c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

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

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

Loading…
Cancel
Save