Skip to content

Commit

Permalink
fix: Show skip instead of error if no akri configuration CRs are found (
Browse files Browse the repository at this point in the history
  • Loading branch information
c-ryan-k authored Jul 16, 2024
1 parent 37a3bab commit 0247120
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions azext_edge/edge/providers/check/akri.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
Expand Down

0 comments on commit 0247120

Please sign in to comment.