summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Sprygada <privateip@users.noreply.github.com>2016-09-07 15:10:43 -0400
committerGitHub <noreply@github.com>2016-09-07 15:10:43 -0400
commit715b800ef12cf4aeb5740a6a955a50df52bd34e3 (patch)
tree417c3140ff995881cfac3ae2a960876e9887b243
parent65c373c55a33f454ca1208939974079d3bd943e5 (diff)
parent675e87f68d824a8c183a92a7d28ae4284de6c9d1 (diff)
downloadansible-715b800ef12cf4aeb5740a6a955a50df52bd34e3.tar.gz
Merge pull request #17447 from privateip/eos
minor fix in eos shared module returning diff
-rw-r--r--lib/ansible/module_utils/eos.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ansible/module_utils/eos.py b/lib/ansible/module_utils/eos.py
index dea26bad95..2f551b13ab 100644
--- a/lib/ansible/module_utils/eos.py
+++ b/lib/ansible/module_utils/eos.py
@@ -91,6 +91,7 @@ class EosConfigMixin(object):
self.abort_config(session)
diff = None
raise
+
return diff
def save_config(self):
@@ -103,9 +104,12 @@ class EosConfigMixin(object):
if isinstance(self, Eapi):
response = self.execute(commands, output='text')
+ response[-2] = response[-2].get('output').strip()
else:
response = self.execute(commands)
+
+
return response[-2]
def commit_config(self, session):