Update GrafanaApi instantiation to disable SSL verification (#154)
taylor_socfortress committed
Feb 14, 2024 at 17:42 UTC
33df2ede56f7d2c4dac3766d452c53a730709360
1 file changed
+2
-2
backend/app/connectors/grafana/utils/universal.py
+2
-2
@@ -48,7 +48,7 @@ async def verify_grafana_credentials(attributes: Dict[str, Any]) -> Dict[str, An
48
49
grafana_url = await construct_grafana_url(connector_url, username, password)
50
51
- grafana_client = GrafanaApi.from_url(grafana_url)
51
+ grafana_client = GrafanaApi.from_url(grafana_url, verify=False)
52
try:
53
create_org = grafana_client.organization.create_organization(
54
organization={
@@ -120,7 +120,7 @@ async def create_grafana_client(connector_name: str) -> GrafanaApi:
120
attributes["connector_username"],
121
attributes["connector_password"],
122
)
123
- return GrafanaApi.from_url(grafana_url)
123
+ return GrafanaApi.from_url(grafana_url, verify=False)
124
except Exception as e:
125
raise HTTPException(
126
status_code=500,