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 commitc10d5c88ef
) (cherry picked from commitbdd8f82f60
) (cherry picked from commitf742fadef1
)
This commit is contained in:
parent
2cf2912fd4
commit
3fd71f5a93
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue