summaryrefslogtreecommitdiff
path: root/src/op_mode/powerctrl.py
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-06-22 17:27:04 +0200
committerGitHub <noreply@github.com>2024-06-22 17:27:04 +0200
commitf9c45bb95dfee33fe15f3db280e1e24bcdf34002 (patch)
treef0ec7d063d7dea17169cb58a9078ebed9e4857db /src/op_mode/powerctrl.py
parent5d46c64a3041504a81e630790a88738300b232c1 (diff)
parente5bb0529da6cd932878e4f2bde4025bc48a93f23 (diff)
downloadvyos-1x-f9c45bb95dfee33fe15f3db280e1e24bcdf34002.tar.gz
vyos-1x-f9c45bb95dfee33fe15f3db280e1e24bcdf34002.zip
Merge pull request #3695 from vyos/mergify/bp/sagitta/pr-3654
op-mode: T5514: Allow safe reboots to config defaults when config.boot is deleted (backport #3654)
Diffstat (limited to 'src/op_mode/powerctrl.py')
-rwxr-xr-xsrc/op_mode/powerctrl.py2
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: