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 Jul 17, 2024
1 parent 7c2481c commit 6068d18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tdp/dao.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,11 +185,15 @@ 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 # Does not configure inactive components
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 # Does not restart inactive components
else None
),
is_active=(
Expand Down

0 comments on commit 6068d18

Please sign in to comment.