mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix wrong order of retention_policy_exists (#34507)
The name of retention policy and database were reversed, so SaltStack was using rp name as database, so it returns "database does not exist"
This commit is contained in:
parent
685df80929
commit
c2f296c95b
1 changed files with 1 additions and 1 deletions
|
@ -490,7 +490,7 @@ def retention_policy_exists(database,
|
|||
|
||||
salt '*' influxdb.retention_policy_exists metrics default
|
||||
'''
|
||||
policy = retention_policy_get(name, database, user, password, host, port)
|
||||
policy = retention_policy_get(database, name, user, password, host, port)
|
||||
return policy is not None
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue