From e554b30adc3aabd859b4e99f35477e3a06a5c17e Mon Sep 17 00:00:00 2001 From: ai-bot Date: Fri, 2 Oct 2026 12:24:16 +0000 Subject: [PATCH] validation.py: keep the derived cloud values for the cloud key (section 20) --- validation.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/validation.py b/validation.py index 5a682d1..e0c3ab7 100644 --- a/validation.py +++ b/validation.py @@ -122,6 +122,15 @@ def _key_check(entry, key): } if available == 0: # The remaining checks could not be performed, so nothing is recorded. + # The cloud key keeps its derived cloud results, because those describe + # the provider rather than a check that could not be run (section 20). + if key["type"] == "cloud": + check["cloud_health_status"] = _optional_status( + entry.get("cloud_health_status"), "cloud_health_status" + ) + check["cloud_provider_operational"] = _flag( + entry.get("cloud_provider_operational"), "cloud_provider_operational" + ) return check required = available == 1