1
0
Fork 0
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:
Deepak Agrawal 2018-08-17 12:34:11 +05:30 committed by GitHub
parent 6090802551
commit aed6722fbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)