From e9fef5d97c9931e139105371591db2c668a3e0e4 Mon Sep 17 00:00:00 2001 From: mbecker20 Date: Tue, 7 Mar 2023 17:39:59 +0000 Subject: [PATCH] change get_deployment_deployed_version to 'unknown' if not known --- core/src/api/deployment.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/api/deployment.rs b/core/src/api/deployment.rs index ab54b40d9..b34fe99a0 100644 --- a/core/src/api/deployment.rs +++ b/core/src/api/deployment.rs @@ -489,10 +489,10 @@ impl State { if let Some(version) = update.version { Ok(version.to_string()) } else { - Ok("latest".to_string()) + Ok("unknown".to_string()) } } else { - Ok("latest".to_string()) + Ok("unknown".to_string()) } } else { let split = deployment @@ -503,7 +503,7 @@ impl State { if let Some(version) = split.get(1) { Ok(version.to_string()) } else { - Ok("latest".to_string()) + Ok("unknown".to_string()) } } }