From c10d5c88ef40e63d4dfefb792d6c3d68acd72dd9 Mon Sep 17 00:00:00 2001 From: Lance Bragstad Date: Thu, 26 Aug 2021 16:29:51 +0000 Subject: [PATCH] Fix typo in identity provider policies This cause the sample generated policy file to alias the old name with the new policy name, which isn't needed since we're not renaming these policies at all and it was likely a typo. Change-Id: Idfd9adbbe800bbc21814d94002a2b61524cce28a --- keystone/common/policies/identity_provider.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/keystone/common/policies/identity_provider.py b/keystone/common/policies/identity_provider.py index c53d2a3af0..c1b4d5a1e2 100644 --- a/keystone/common/policies/identity_provider.py +++ b/keystone/common/policies/identity_provider.py @@ -20,7 +20,7 @@ DEPRECATED_REASON = ( ) deprecated_get_idp = policy.DeprecatedRule( - name=base.IDENTITY % 'get_identity_providers', + name=base.IDENTITY % 'get_identity_provider', check_str=base.RULE_ADMIN_REQUIRED, deprecated_reason=DEPRECATED_REASON, deprecated_since=versionutils.deprecated.STEIN @@ -32,19 +32,19 @@ deprecated_list_idp = policy.DeprecatedRule( deprecated_since=versionutils.deprecated.STEIN ) deprecated_update_idp = policy.DeprecatedRule( - name=base.IDENTITY % 'update_identity_providers', + name=base.IDENTITY % 'update_identity_provider', check_str=base.RULE_ADMIN_REQUIRED, deprecated_reason=DEPRECATED_REASON, deprecated_since=versionutils.deprecated.STEIN ) deprecated_create_idp = policy.DeprecatedRule( - name=base.IDENTITY % 'create_identity_providers', + name=base.IDENTITY % 'create_identity_provider', check_str=base.RULE_ADMIN_REQUIRED, deprecated_reason=DEPRECATED_REASON, deprecated_since=versionutils.deprecated.STEIN ) deprecated_delete_idp = policy.DeprecatedRule( - name=base.IDENTITY % 'delete_identity_providers', + name=base.IDENTITY % 'delete_identity_provider', check_str=base.RULE_ADMIN_REQUIRED, deprecated_reason=DEPRECATED_REASON, deprecated_since=versionutils.deprecated.STEIN