mirror of
https://github.com/grafana/grafana.git
synced 2025-09-23 18:52:33 +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 {
|
if err != nil {
|
||||||
return dataResponseErrorWithExecuted(err)
|
return dataResponseErrorWithExecuted(err)
|
||||||
}
|
}
|
||||||
|
if frame == nil {
|
||||||
|
// empty response
|
||||||
|
return dataResponse
|
||||||
|
}
|
||||||
|
|
||||||
azurePortalUrl, err := GetAzurePortalUrl(dsInfo.Cloud)
|
azurePortalUrl, err := GetAzurePortalUrl(dsInfo.Cloud)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Reference in New Issue
Block a user