mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
DCI devel iosxr fix : on-device diffs does not work always (#44265)
* fix devel dci failure on iosxr * pep8 issue fix
This commit is contained in:
parent
6090802551
commit
aed6722fbc
1 changed files with 4 additions and 8 deletions
|
@ -103,14 +103,10 @@ class Cliconf(CliconfBase):
|
|||
results.append(self.send_command(**line))
|
||||
requests.append(cmd)
|
||||
|
||||
diff = self.get_diff(admin=admin)
|
||||
config_diff = diff.get('config_diff')
|
||||
if config_diff or replace:
|
||||
resp['diff'] = config_diff
|
||||
if commit:
|
||||
self.commit(comment=comment, label=label, replace=replace)
|
||||
else:
|
||||
self.discard_changes()
|
||||
if commit:
|
||||
self.commit(comment=comment, label=label, replace=replace)
|
||||
else:
|
||||
self.discard_changes()
|
||||
|
||||
self.abort(admin=admin)
|
||||
|
||||
|
|
Loading…
Reference in a new issue