From 7aaf51790bf19911ebcaa49f6474b26bd04b3910 Mon Sep 17 00:00:00 2001 From: Lukas M Date: Mon, 31 Jul 2023 18:14:11 +0200 Subject: [PATCH] Update apt_info.py Signed-off-by: Lukas M --- apt_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apt_info.py b/apt_info.py index 4347242..aebf8ac 100755 --- a/apt_info.py +++ b/apt_info.py @@ -79,7 +79,7 @@ def _write_autoremove_pending(registry, cache): def _write_reboot_required(registry): g = Gauge('node_reboot_required', "Node reboot is required for software updates.", registry=registry) - g.set(int(os.path.isfile(os.path.join(hostPrefix,'/run/reboot-required')))) + g.set(int(os.path.isfile(os.path.join(hostPrefix,'run/reboot-required')))) def _main():