mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
InfluxDB: Fix querying retention policies on flux mode (#67722)
Query retention policies only on InfluxQL mode
This commit is contained in:
parent
6cd042ed16
commit
373e4cab9a
@ -169,7 +169,8 @@ export default class InfluxDatasource extends DataSourceWithBackend<InfluxQuery,
|
||||
}
|
||||
|
||||
async getRetentionPolicies(): Promise<string[]> {
|
||||
if (this.retentionPolicies.length) {
|
||||
// Only For InfluxQL Mode
|
||||
if (this.isFlux || this.retentionPolicies.length) {
|
||||
return Promise.resolve(this.retentionPolicies);
|
||||
} else {
|
||||
return getAllPolicies(this).catch((err) => {
|
||||
|
Loading…
Reference in New Issue
Block a user