diff options
author | John Estabrook <jestabro@vyos.io> | 2024-10-08 10:16:52 -0500 |
---|---|---|
committer | John Estabrook <jestabro@vyos.io> | 2024-10-08 11:08:25 -0500 |
commit | dfba19b3e89f47690c0abdee5f6410278237122e (patch) | |
tree | 8300514a6239e695455eb8572d170940817543da /python | |
parent | 64196ec5fd90a8caedef88edb9068a32e4e6abfa (diff) | |
download | vyos-1x-dfba19b3e89f47690c0abdee5f6410278237122e.tar.gz vyos-1x-dfba19b3e89f47690c0abdee5f6410278237122e.zip |
config-mgmt: T5976: display message when reverting to previous config
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/config_mgmt.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/python/vyos/config_mgmt.py b/python/vyos/config_mgmt.py index 851ac2134..1c2b70fdf 100644 --- a/python/vyos/config_mgmt.py +++ b/python/vyos/config_mgmt.py @@ -289,6 +289,9 @@ Proceed ?""" # 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') |