diff options
author | Peter Sprygada <privateip@users.noreply.github.com> | 2016-09-07 15:10:43 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-07 15:10:43 -0400 |
commit | 715b800ef12cf4aeb5740a6a955a50df52bd34e3 (patch) | |
tree | 417c3140ff995881cfac3ae2a960876e9887b243 | |
parent | 65c373c55a33f454ca1208939974079d3bd943e5 (diff) | |
parent | 675e87f68d824a8c183a92a7d28ae4284de6c9d1 (diff) | |
download | ansible-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.py | 4 |
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): |