From caf52c617855e7c6abe00e451f1db8ec0e3912e2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Mat=C4=9Bjek?= Date: Tue, 28 Jun 2022 17:40:04 +0200 Subject: [PATCH] approvals: fix typo and correctly mark delayed reboot Fix typo `delayd` -> `delayed`, which in turn should fix detection of delayed reboot. It should fix following issues: * (1) Treat delayed reboot as "reboot is required". * (2) Create correct notification. --- CHANGELOG.md | 2 ++ svupdater/approvals.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fc7d6ac..ddaf903 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Fixed case when updates were installed automatically, even though manual confirmation was required. +- Fix detection of delayed reboot and thus create complete notification for it. + ## [1.5.2] - 2022-03-17 ### Fixed diff --git a/svupdater/approvals.py b/svupdater/approvals.py index 9b14b2d..6d564c4 100644 --- a/svupdater/approvals.py +++ b/svupdater/approvals.py @@ -81,7 +81,7 @@ def current() -> typing.Optional[ApprovalRequest]: "finished" if "finished" in (result["reboot"], cols[3].strip()) else "delayed" - if "delayd" in (result["reboot"], cols[3].strip()) + if "delayed" in (result["reboot"], cols[3].strip()) else None ) -- GitLab