[v9.4.x] InfluxDB: Fix querying retention policies on flux mode (#67724)
InfluxDB: Fix querying retention policies on flux mode (#67722)
Query retention policies only on InfluxQL mode
(cherry picked from commit 373e4cab9a)
Co-authored-by: ismail simsek <ismailsimsek09@gmail.com>
This commit is contained in:
co-authored by
ismail simsek
parent
ad4357b07e
commit
be58e9f116
@@ -170,7 +170,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) => {
|
||||
|
||||
Reference in New Issue
Block a user