From 48afe551a0d162fc9f9cd18a715e71ac5ecdf8a5 Mon Sep 17 00:00:00 2001 From: silvacarloss Date: Wed, 9 Mar 2022 21:07:14 -0300 Subject: [PATCH] Add missing deprecated messages to policy During the Yoga cycle, we've introduced a new API to check if it is possible to add share network subnets to share networks that are currently being used. We missed the addition of the deprecation messages to that new policy though. This change serves as a follow up to add these missing items. Change-Id: I163e2691105468a0e821c8a5991f8c20e85ff599 --- manila/policies/share_network.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/manila/policies/share_network.py b/manila/policies/share_network.py index 4991d91cf8..4985abe546 100644 --- a/manila/policies/share_network.py +++ b/manila/policies/share_network.py @@ -101,7 +101,9 @@ deprecated_share_network_reset_status = policy.DeprecatedRule( ) deprecated_share_network_subnet_create_check = policy.DeprecatedRule( name=BASE_POLICY_NAME % 'subnet_create_check', - check_str=base.RULE_DEFAULT + check_str=base.RULE_DEFAULT, + deprecated_reason=DEPRECATED_REASON, + deprecated_since="Yoga" )