Remove unused policy rule in admin_actions.py
This patch removes the policy rule with name os_compute_api:os-admin-actions as it is not used by any API. blueprint policy-docs Change-Id: I387e80dcedd4f1500f87fc36765c42d72717ded9
This commit is contained in:
parent
4179360fc5
commit
353fb80d4d
@ -26,10 +26,6 @@ admin_actions_policies = [
|
||||
policy.RuleDefault(
|
||||
name=POLICY_ROOT % 'discoverable',
|
||||
check_str=base.RULE_ANY),
|
||||
# TODO(sneti): remove this rule as this not used by any API
|
||||
policy.RuleDefault(
|
||||
name=BASE_POLICY_NAME,
|
||||
check_str=base.RULE_ADMIN_API),
|
||||
base.create_rule_default(
|
||||
POLICY_ROOT % 'reset_state',
|
||||
base.RULE_ADMIN_API,
|
||||
|
@ -273,7 +273,6 @@ class RealRolePolicyTestCase(test.NoDBTestCase):
|
||||
"os_compute_api:servers:show:host_status",
|
||||
"os_compute_api:servers:migrations:force_complete",
|
||||
"os_compute_api:servers:migrations:delete",
|
||||
"os_compute_api:os-admin-actions",
|
||||
"os_compute_api:os-admin-actions:reset_network",
|
||||
"os_compute_api:os-admin-actions:inject_network_info",
|
||||
"os_compute_api:os-admin-actions:reset_state",
|
||||
|
@ -0,0 +1,5 @@
|
||||
---
|
||||
upgrade:
|
||||
- |
|
||||
Policy rule with name os_compute_api:os-admin-actions has been removed
|
||||
as it was never used by any API.
|
Loading…
Reference in New Issue
Block a user