From 02471201901c066ecbaa7dcf1839551ac78950d4 Mon Sep 17 00:00:00 2001 From: Ryan K Date: Tue, 16 Jul 2024 13:18:16 -0700 Subject: [PATCH] fix: Show skip instead of error if no akri configuration CRs are found (#270) --- azext_edge/edge/providers/check/akri.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/azext_edge/edge/providers/check/akri.py b/azext_edge/edge/providers/check/akri.py index f929a1274..89d908598 100644 --- a/azext_edge/edge/providers/check/akri.py +++ b/azext_edge/edge/providers/check/akri.py @@ -128,12 +128,11 @@ def evaluate_configurations( ) if not all_configurations: - status = CheckTaskStatus.skipped.value if resource_name else CheckTaskStatus.error.value fetch_configurations_error_text = "Unable to fetch Akri configurations in any namespaces." check_manager.add_target(target_name=target_configurations) check_manager.add_target_eval( target_name=target_configurations, - status=status, + status=CheckTaskStatus.skipped.value, value={"configurations": fetch_configurations_error_text} ) check_manager.add_display(target_name=target_configurations, display=Padding(fetch_configurations_error_text, (0, 0, 0, 8)))