Skip to content

Commit

Permalink
fix: to_restart and to_config in get_hosted_entity_statuses
Browse files Browse the repository at this point in the history
  • Loading branch information
SteBaum committed Jun 27, 2024
1 parent 8a2c3de commit c7bc163
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tdp/dao.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=(
Expand Down

0 comments on commit c7bc163

Please sign in to comment.