From b3363cc863df324b21e95692949a462a31a67cef Mon Sep 17 00:00:00 2001 From: Lance Bragstad Date: Tue, 7 Sep 2021 17:52:25 +0000 Subject: [PATCH] Fix typos in zone policy deprecations Two of the zone policies were referencing the wrong policy variables in the same file. This causes oslo.policy to think the rules were changing when they are not. This commit updates the policy deprecations to use the proper deprecated rules for the appropriate policies. Change-Id: I68b71e680cd72692b0bcb470be1bc4902d5e7bc8 --- designate/common/policies/zone.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/designate/common/policies/zone.py b/designate/common/policies/zone.py index 74552597c..948b11326 100644 --- a/designate/common/policies/zone.py +++ b/designate/common/policies/zone.py @@ -158,7 +158,7 @@ rules = [ 'method': 'GET' } ], - deprecated_rule=deprecated_get_zone_servers + deprecated_rule=deprecated_find_zones ), policy.DocumentedRuleDefault( name="update_zone", @@ -234,7 +234,7 @@ rules = [ name="touch_zone", check_str=base.SYSTEM_ADMIN_OR_PROJECT_MEMBER, scope_types=['system', 'project'], - deprecated_rule=deprecated_purge_zones + deprecated_rule=deprecated_touch_zone ) ]