fix logic

This commit is contained in:
Naiel
2026-03-03 11:33:23 +01:00
committed by GitHub
parent cd456ab9f1
commit 80e9262bcb

View File

@@ -372,7 +372,7 @@ def should_shutdown(data: Dict[str, Any], server_now: datetime) -> bool:
target = parse_iso(str(data.get("ShutdownBeforeDate", "") or "")) target = parse_iso(str(data.get("ShutdownBeforeDate", "") or ""))
if not target: if not target:
return False return False
return server_now >= target return server_now <= target
def execute_shutdown(dry_run: bool = False) -> None: def execute_shutdown(dry_run: bool = False) -> None: