summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathaniel Case <ncase@redhat.com>2019-05-08 12:28:04 -0400
committerGitHub <noreply@github.com>2019-05-08 12:28:04 -0400
commitc5f3b778c45edb572039390912e1aee3763dbd47 (patch)
treeb7dd38cfcfb7b515d921c613aaadbdefd365bc1e
parentbceca72eb7f4714a64c6ebee310e005633de1f71 (diff)
downloadansible-c5f3b778c45edb572039390912e1aee3763dbd47.tar.gz
Fix addition of newline for eos & nxos (#56227)
-rw-r--r--lib/ansible/module_utils/network/eos/eos.py1
-rw-r--r--lib/ansible/module_utils/network/nxos/nxos.py1
-rw-r--r--lib/ansible/modules/network/eos/eos_command.py2
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)