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:
Ahmed M. AbouZaid 2016-07-07 22:43:32 +02:00 committed by Nicole Thomas
parent 685df80929
commit c2f296c95b

View file

@ -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