mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00:00
Merge pull request #17447 from privateip/eos
minor fix in eos shared module returning diff
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user