Fix list_mappings deprecation warning message

Without this patch, the identity:list_mappings policy uses the
deprecated name and check string for the old identity:get_mapping rule,
which means the resulting OR'd policy is wrong and the deprecation
message is confusing. Use the right one.

Change-Id: I3fc1cff61df6d64ea1fc98f54f98aba0cd35145c
This commit is contained in:
Colleen Murphy 2019-08-06 14:23:21 -07:00
parent f826e5c18b
commit 3c665395cc
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ mapping_policies = [
'method': 'HEAD'
}
],
deprecated_rule=deprecated_get_mapping,
deprecated_rule=deprecated_list_mappings,
deprecated_reason=DEPRECATED_REASON,
deprecated_since=versionutils.deprecated.STEIN
),