Skip to content
Snippets Groups Projects
Commit ca33892a authored by Shane Hutchins's avatar Shane Hutchins
Browse files

Merge branch 'm20k8sfix' into 'master'

Azure fix for M20 and M21

See merge request !430
parents bce0e1c6 d74c9b2e
No related branches found
No related tags found
1 merge request!430Azure fix for M20 and M21
Pipeline #213982 failed
......@@ -33,10 +33,12 @@ def get_opa_config(namespace="osdu-services", name="opa-config", config_only=Tru
try:
api_response = v1.read_namespaced_config_map(namespace=namespace, name=name, pretty=pretty)
if config_only:
if "config" in api_response.data:
return api_response.data["config"]
if "opa-config.yaml" in api_response.data:
return api_response.data["opa-config.yaml"]
elif "config.yaml" in api_response.data:
return api_response.data["config.yaml"]
elif "config" in api_response.data:
return api_response.data["config"]
else:
logger.error(f"Exception {api_response.data}")
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment