From f67ae19888c738aba4f829782a92018a8e475950 Mon Sep 17 00:00:00 2001 From: Lance Bragstad <lbragstad@gmail.com> Date: Tue, 7 Sep 2021 17:51:00 +0000 Subject: [PATCH] Fix count_record policy to use the right deprecation variable The cound record policy was referencing the wrong variable name for the deprecated rule. This causes oslo.policy to generate a deprecation warning that didn't make sense since it thought the policy name was changing. This commit updates the rule to use the proper deprecation. Change-Id: Ic686d35c25436a1bca83c4bb9c62ebf28a445f28 --- designate/common/policies/record.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/designate/common/policies/record.py b/designate/common/policies/record.py index d90ba273c..61efe4f9b 100644 --- a/designate/common/policies/record.py +++ b/designate/common/policies/record.py @@ -57,7 +57,7 @@ rules = [ name="count_records", check_str=base.SYSTEM_OR_PROJECT_READER, scope_types=['system', 'project'], - deprecated_rule=deprecated_find_records + deprecated_rule=deprecated_count_records ) ]