Skip to content

Commit

Permalink
config-mgmt: T5976: display message when reverting to previous config
Browse files Browse the repository at this point in the history
  • Loading branch information
jestabro committed Oct 8, 2024
1 parent 64196ec commit dfba19b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/vyos/config_mgmt.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,9 @@ def revert_soft(self) -> Tuple[str, int]:
# confirmed, hence a soft revert is to revision 0
revert_ct = self._get_config_tree_revision(0)

message = '[commit-confirm] Reverting to previous config now'
os.system('wall -n ' + message)

mask = os.umask(0o002)
session = ConfigSession(os.getpid(), app='config-mgmt')

Expand Down

0 comments on commit dfba19b

Please sign in to comment.