AzureMonitor: Fix panic from empty response in ARG (#59691)

AzureMonitor: Avoid panic from empty response in ARG
This commit is contained in:
Andres Martinez Gotor
2022-12-02 13:14:48 +01:00
committed by GitHub
parent 7b47021d19
commit 231b5b587c

View File

@ -192,6 +192,10 @@ func (e *AzureResourceGraphDatasource) executeQuery(ctx context.Context, logger
if err != nil {
return dataResponseErrorWithExecuted(err)
}
if frame == nil {
// empty response
return dataResponse
}
azurePortalUrl, err := GetAzurePortalUrl(dsInfo.Cloud)
if err != nil {