summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLance Bragstad <lbragstad@gmail.com>2021-08-26 16:29:51 +0000
committerLance Bragstad <lbragstad@gmail.com>2021-10-07 13:27:35 +0000
commitf0bf1058fa0df357b68aa54353e44d3708c24ec0 (patch)
treee5918b1186549ccef6c57b99658a723c0b247a47
parentf36034c8a6530b16f6b6eb88ee97f540c974ba00 (diff)
downloadkeystone-f0bf1058fa0df357b68aa54353e44d3708c24ec0.tar.gz
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. Conflicts: keystone/common/policies/identity_provider.py In later releases the deprecation parameters were moved up to the deprecated options and not in the DocumentedRule defaults. Change-Id: Idfd9adbbe800bbc21814d94002a2b61524cce28a (cherry picked from commit c10d5c88ef40e63d4dfefb792d6c3d68acd72dd9) (cherry picked from commit bdd8f82f60d2e46e5f6951c4407366b89591cde5) (cherry picked from commit f742fadef1718e070ff4e151d400a96dc6acf74e) (cherry picked from commit 3fd71f5a933052b0a3fd4dadb3a754ac544348f3) (cherry picked from commit db13e36e7f95c770f0a52c57e89fc54c72faf2eb)
-rw-r--r--keystone/common/policies/identity_provider.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/keystone/common/policies/identity_provider.py b/keystone/common/policies/identity_provider.py
index fb9fe75d0..006a6cc70 100644
--- a/keystone/common/policies/identity_provider.py
+++ b/keystone/common/policies/identity_provider.py
@@ -16,7 +16,7 @@ from oslo_policy import policy
from keystone.common.policies import base
deprecated_get_idp = policy.DeprecatedRule(
- name=base.IDENTITY % 'get_identity_providers',
+ name=base.IDENTITY % 'get_identity_provider',
check_str=base.RULE_ADMIN_REQUIRED
)
deprecated_list_idp = policy.DeprecatedRule(
@@ -24,15 +24,15 @@ deprecated_list_idp = policy.DeprecatedRule(
check_str=base.RULE_ADMIN_REQUIRED
)
deprecated_update_idp = policy.DeprecatedRule(
- name=base.IDENTITY % 'update_identity_providers',
+ name=base.IDENTITY % 'update_identity_provider',
check_str=base.RULE_ADMIN_REQUIRED
)
deprecated_create_idp = policy.DeprecatedRule(
- name=base.IDENTITY % 'create_identity_providers',
+ name=base.IDENTITY % 'create_identity_provider',
check_str=base.RULE_ADMIN_REQUIRED
)
deprecated_delete_idp = policy.DeprecatedRule(
- name=base.IDENTITY % 'delete_identity_providers',
+ name=base.IDENTITY % 'delete_identity_provider',
check_str=base.RULE_ADMIN_REQUIRED
)