Commit 6a4dcc8f authored by Frank Vissing's avatar Frank Vissing
Browse files

reboot if forceRebootSentinel exists

parent 989594ac
...@@ -124,7 +124,7 @@ func forceRebootsentinelExists() bool { ...@@ -124,7 +124,7 @@ func forceRebootsentinelExists() bool {
} }
func rebootRequired() bool { func rebootRequired() bool {
if sentinelExists() { if sentinelExists() || forceRebootsentinelExists() {
log.Infof("Reboot required") log.Infof("Reboot required")
return true return true
} else { } else {
...@@ -135,7 +135,7 @@ func rebootRequired() bool { ...@@ -135,7 +135,7 @@ func rebootRequired() bool {
func rebootBlocked() bool { func rebootBlocked() bool {
if forceRebootsentinelExists() { if forceRebootsentinelExists() {
log.Infof("Force reboot sentinel %v exists, force rebooting activated",forceRebootSentinel) log.Infof("Force reboot sentinel %v exists, force rebooting activated", forceRebootSentinel)
return false return false
} }
if prometheusURL != "" { if prometheusURL != "" {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment