From ed92367ea9e1b2b59ec6bb0d9d182032d167a1ae Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Fri, 13 Sep 2024 06:45:55 -0700 Subject: [PATCH] kcli: queue-summary: fix displaying suspension status When rendering the suspension and bounce status, the various queue name component parameters were flipped wrt. to the suspension and bounce entries, causing them not to match. This commit fixes that and restores stop sign and trash can emoji status annotations to the output. --- crates/kcli/src/queue_summary.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/kcli/src/queue_summary.rs b/crates/kcli/src/queue_summary.rs index f704f4be..5e2e4196 100644 --- a/crates/kcli/src/queue_summary.rs +++ b/crates/kcli/src/queue_summary.rs @@ -432,13 +432,13 @@ fn domain_matches( tenant: &Option, domain: &Option, ) -> bool { - if !match_criteria(campaign.as_deref(), components.campaign.as_deref()) { + if !match_criteria(components.campaign.as_deref(), campaign.as_deref()) { return false; } - if !match_criteria(tenant.as_deref(), components.tenant.as_deref()) { + if !match_criteria(components.tenant.as_deref(), tenant.as_deref()) { return false; } - if !match_criteria(domain.as_deref(), Some(components.domain)) { + if !match_criteria(Some(components.domain), domain.as_deref()) { return false; } true