mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 12:52:12 +08:00
AzureMonitor: Fix panic from empty response in ARG (#59691)
AzureMonitor: Avoid panic from empty response in ARG
This commit is contained in:

committed by
GitHub

parent
7b47021d19
commit
231b5b587c
@ -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 {
|
||||
|
Reference in New Issue
Block a user