Merge "Introduce scope_types in rescue server policy"

This commit is contained in:
Zuul 2020-04-01 17:11:58 +00:00 committed by Gerrit Code Review
commit 493bf817dd
1 changed files with 6 additions and 5 deletions

View File

@ -23,10 +23,10 @@ BASE_POLICY_NAME = 'os_compute_api:os-rescue'
rescue_policies = [
policy.DocumentedRuleDefault(
BASE_POLICY_NAME,
base.RULE_ADMIN_OR_OWNER,
"Rescue/unrescue a server",
[
name=BASE_POLICY_NAME,
check_str=base.RULE_ADMIN_OR_OWNER,
description="Rescue/unrescue a server",
operations=[
{
'path': '/servers/{server_id}/action (rescue)',
'method': 'POST'
@ -35,7 +35,8 @@ rescue_policies = [
'path': '/servers/{server_id}/action (unrescue)',
'method': 'POST'
}
]
],
scope_types=['system', 'project']
),
]