From c5f3b778c45edb572039390912e1aee3763dbd47 Mon Sep 17 00:00:00 2001 From: Nathaniel Case Date: Wed, 8 May 2019 12:28:04 -0400 Subject: [PATCH] Fix addition of newline for eos & nxos (#56227) --- lib/ansible/module_utils/network/eos/eos.py | 1 + lib/ansible/module_utils/network/nxos/nxos.py | 1 + lib/ansible/modules/network/eos/eos_command.py | 2 -- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/module_utils/network/eos/eos.py b/lib/ansible/module_utils/network/eos/eos.py index 3aaafc5d63..6a2640f3e3 100644 --- a/lib/ansible/module_utils/network/eos/eos.py +++ b/lib/ansible/module_utils/network/eos/eos.py @@ -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) diff --git a/lib/ansible/module_utils/network/nxos/nxos.py b/lib/ansible/module_utils/network/nxos/nxos.py index a9a9954c37..79195be0d7 100644 --- a/lib/ansible/module_utils/network/nxos/nxos.py +++ b/lib/ansible/module_utils/network/nxos/nxos.py @@ -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) diff --git a/lib/ansible/modules/network/eos/eos_command.py b/lib/ansible/modules/network/eos/eos_command.py index d290858483..0db5c26a74 100644 --- a/lib/ansible/modules/network/eos/eos_command.py +++ b/lib/ansible/modules/network/eos/eos_command.py @@ -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)