From 28cb06f42f358bc7eb3c91a59978e005b36e6753 Mon Sep 17 00:00:00 2001 From: Ken Simon Date: Tue, 16 Jun 2026 16:04:44 -0400 Subject: [PATCH] Fix No-DPF warning message for zero-dpu deployments We recently started rendering a warning if none of the hosts have dpf_used_for_ingestion set, but this emits a false positive if the host has no DPU's at all. Fix that by not warning on zero-DPU hosts. --- crates/api-web/src/managed_host.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/api-web/src/managed_host.rs b/crates/api-web/src/managed_host.rs index 97f5dc253d..0dba7c859c 100644 --- a/crates/api-web/src/managed_host.rs +++ b/crates/api-web/src/managed_host.rs @@ -615,7 +615,9 @@ pub async fn show_html( } .to_query_params(); - let has_dpf_warning = hosts.iter().any(|h| !h.dpf_used_for_ingestion); + let has_dpf_warning = hosts + .iter() + .any(|h| !h.dpus.is_empty() && !h.dpf_used_for_ingestion); let tmpl = ManagedHostShow { grouped_hosts,