summaryrefslogtreecommitdiff
path: root/nova/policies
diff options
context:
space:
mode:
authorZuul <zuul@review.opendev.org>2020-08-07 19:38:37 +0000
committerGerrit Code Review <review@openstack.org>2020-08-07 19:38:38 +0000
commit50d577bd6aec13824edf38297365a7d3c89cd08d (patch)
treee4f14826775529bc0b7f88830888405a920cb9bc /nova/policies
parent35e10ad3b15fb63ec135450c070a6f51cadaae59 (diff)
parent672aa45dd1229c55d06d862d6b359eb3925308a4 (diff)
downloadnova-50d577bd6aec13824edf38297365a7d3c89cd08d.tar.gz
Merge "Introduce scope_types in baremetal node"
Diffstat (limited to 'nova/policies')
-rw-r--r--nova/policies/baremetal_nodes.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/nova/policies/baremetal_nodes.py b/nova/policies/baremetal_nodes.py
index 6f52f44123..1fa68abcad 100644
--- a/nova/policies/baremetal_nodes.py
+++ b/nova/policies/baremetal_nodes.py
@@ -23,13 +23,13 @@ BASE_POLICY_NAME = 'os_compute_api:os-baremetal-nodes'
baremetal_nodes_policies = [
policy.DocumentedRuleDefault(
- BASE_POLICY_NAME,
- base.RULE_ADMIN_API,
- """List and show details of bare metal nodes.
+ name=BASE_POLICY_NAME,
+ check_str=base.RULE_ADMIN_API,
+ description="""List and show details of bare metal nodes.
These APIs are proxy calls to the Ironic service and are deprecated.
""",
- [
+ operations=[
{
'method': 'GET',
'path': '/os-baremetal-nodes'
@@ -38,7 +38,8 @@ These APIs are proxy calls to the Ironic service and are deprecated.
'method': 'GET',
'path': '/os-baremetal-nodes/{node_id}'
}
- ]),
+ ],
+ scope_types=['system']),
]