diff options
author | Zuul <zuul@review.opendev.org> | 2020-08-07 19:38:37 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2020-08-07 19:38:38 +0000 |
commit | 50d577bd6aec13824edf38297365a7d3c89cd08d (patch) | |
tree | e4f14826775529bc0b7f88830888405a920cb9bc /nova/policies | |
parent | 35e10ad3b15fb63ec135450c070a6f51cadaae59 (diff) | |
parent | 672aa45dd1229c55d06d862d6b359eb3925308a4 (diff) | |
download | nova-50d577bd6aec13824edf38297365a7d3c89cd08d.tar.gz |
Merge "Introduce scope_types in baremetal node"
Diffstat (limited to 'nova/policies')
-rw-r--r-- | nova/policies/baremetal_nodes.py | 11 |
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']), ] |