Clean up inactive health variable naming in service detail
Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/0baad662-d798-4d3e-a079-eefece637ab7 Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
1b2c0f2c1c
commit
1651f8de37
@@ -2681,9 +2681,8 @@ async def api_service_detail(unit: str, icon: str | None = None):
|
||||
elif status == "inactive":
|
||||
# For enabled services that are inactive (e.g. socket-activated PHP-FPM),
|
||||
# still check domain/port health so detail health is consistent.
|
||||
has_domain_issues_inactive = has_domain_issues
|
||||
has_port_issues_inactive = any(p["status"] == "closed" for p in port_statuses) if port_statuses else False
|
||||
if has_domain_issues_inactive or has_port_issues_inactive:
|
||||
has_port_issues = any(p["status"] == "closed" for p in port_statuses) if port_statuses else False
|
||||
if has_domain_issues or has_port_issues:
|
||||
health = "needs_attention"
|
||||
else:
|
||||
health = "inactive"
|
||||
|
||||
Reference in New Issue
Block a user