validation.py: keep the derived cloud values for the cloud key (section 20)
This commit is contained in:
1 parent
871b1a5000
commit
e554b30adc
1 file changed
+9
@@ -122,6 +122,15 @@ def _key_check(entry, key):
|
|||||||
}
|
}
|
||||||
if available == 0:
|
if available == 0:
|
||||||
# The remaining checks could not be performed, so nothing is recorded.
|
# 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
|
return check
|
||||||
|
|
||||||
required = available == 1
|
required = available == 1
|
||||||
|
|||||||
Reference in new issue
Block a user