From 2e148192156e2ec60c30c696028e8f8ff86df8ae Mon Sep 17 00:00:00 2001 From: Nikola Milosavljevic <73236646+NikolaMilosa@users.noreply.github.com> Date: Thu, 16 May 2024 14:11:50 +0200 Subject: [PATCH] fix: adding missing mapping for unassigned status from public dashboard (#379) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Saša Tomić --- rs/ic-management-types/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rs/ic-management-types/src/lib.rs b/rs/ic-management-types/src/lib.rs index 1144cdd7..c90420e4 100644 --- a/rs/ic-management-types/src/lib.rs +++ b/rs/ic-management-types/src/lib.rs @@ -455,7 +455,7 @@ pub enum Status { impl Status { pub fn from_str_from_dashboard(s: &str) -> Self { match s { - "UP" => Self::Healthy, + "UP" | "UNASSIGNED" => Self::Healthy, "DEGRADED" => Self::Degraded, "DOWN" => Self::Dead, _ => Self::Unknown,