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
This commit is contained in:
Lance Bragstad 2021-09-07 17:51:00 +00:00 committed by Lance Bragstad
parent 76bb79dd0d
commit f67ae19888

View File

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