diff options
author | John Estabrook <jestabro@vyos.io> | 2024-06-20 21:47:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 21:47:47 -0500 |
commit | c6190f37908bb4486ecce6a5cabb752c19b67c7f (patch) | |
tree | d6e19e137bdf855d71ab5d976e3f2c314fcd36f5 /src | |
parent | 442bf37dbccbcb9f47333543742fa7aa665bb417 (diff) | |
parent | 8281383a09f12da20a1c9b4864b38ac3f541b48f (diff) | |
download | vyos-1x-c6190f37908bb4486ecce6a5cabb752c19b67c7f.tar.gz vyos-1x-c6190f37908bb4486ecce6a5cabb752c19b67c7f.zip |
Merge pull request #3654 from talmakion/bugfix/T5514
op-mode: T5514: Allow safe reboots to config defaults when config.boot is deleted
Diffstat (limited to 'src')
-rwxr-xr-x | src/op_mode/powerctrl.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/powerctrl.py b/src/op_mode/powerctrl.py index 6c8f802b5..cb4a175dd 100755 --- a/src/op_mode/powerctrl.py +++ b/src/op_mode/powerctrl.py @@ -110,7 +110,7 @@ def check_unsaved_config(): from vyos.config_mgmt import unsaved_commits from vyos.utils.boot import boot_configuration_success - if unsaved_commits() and boot_configuration_success(): + if unsaved_commits(allow_missing_config=True) and boot_configuration_success(): print("Warning: there are unsaved configuration changes!") print("Run 'save' command if you do not want to lose those changes after reboot/shutdown.") else: |