Skip to content

Commit

Permalink
Merge pull request #1522 from ekoyle/discard_ignore_warning
Browse files Browse the repository at this point in the history
if we are ignoring warnings on commit, also ignore them on discard
  • Loading branch information
mirceaulinic authored Nov 29, 2021
2 parents d4061d7 + 689ab2f commit 43cdbcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion napalm/junos/junos.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def confirm_commit(self):

def discard_config(self):
"""Discard changes (rollback 0)."""
self.device.cu.rollback(rb_id=0)
self.device.cu.rollback(rb_id=0, ignore_warning=self.ignore_warning)
if not self.lock_disable and not self.session_config_lock:
self._unlock()
if self.config_private:
Expand Down

0 comments on commit 43cdbcc

Please sign in to comment.