From 651c936f22ac2a124ef1cfd486a5d3e6b1113e80 Mon Sep 17 00:00:00 2001 From: Lance Bragstad Date: Thu, 7 Oct 2021 18:48:04 +0000 Subject: [PATCH] Fix typo in message policy deprecations The similarity in the variable names for get and get_all slipped through when we implemented project personas support for messages: https://review.opendev.org/c/openstack/cinder/+/806631 As a result, oslo.policy thought the policy name was changing, but it's not. This commit updates the policy deprecations to use the right deprecation variables. Change-Id: I2a83ab07ccec80b910c614a5f5743d642491e592 --- cinder/policies/messages.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cinder/policies/messages.py b/cinder/policies/messages.py index ea8adab3bcd..25a0277ecba 100644 --- a/cinder/policies/messages.py +++ b/cinder/policies/messages.py @@ -48,7 +48,7 @@ messages_policies = [ 'path': '/messages' } ], - deprecated_rule=deprecated_get_policy, + deprecated_rule=deprecated_get_all_policy, ), policy.DocumentedRuleDefault( name=GET_POLICY, @@ -60,7 +60,7 @@ messages_policies = [ 'path': '/messages/{message_id}' } ], - deprecated_rule=deprecated_get_all_policy, + deprecated_rule=deprecated_get_policy, ), policy.DocumentedRuleDefault( name=DELETE_POLICY,