From c7bc163b9032af0b6082575cddf4f77c9fd24691 Mon Sep 17 00:00:00 2001 From: SteBaum Date: Thu, 27 Jun 2024 16:13:42 +0200 Subject: [PATCH] fix: to_restart and to_config in get_hosted_entity_statuses --- tdp/dao.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tdp/dao.py b/tdp/dao.py index 26e3c8cf..0c217f9f 100644 --- a/tdp/dao.py +++ b/tdp/dao.py @@ -185,11 +185,13 @@ def get_hosted_entity_statuses( to_config=( bool(status.latest_to_config) if status.latest_to_config is not None + and bool(status.latest_is_active) is not False else None ), to_restart=( bool(status.latest_to_restart) if status.latest_to_restart is not None + and bool(status.latest_is_active) is not False else None ), is_active=(