Merge "Introduce scope_types in os-admin-password"

This commit is contained in:
Zuul
2020-03-06 12:44:53 +00:00
committed by Gerrit Code Review
+6 -5
View File
@@ -23,15 +23,16 @@ BASE_POLICY_NAME = 'os_compute_api:os-admin-password'
admin_password_policies = [
policy.DocumentedRuleDefault(
BASE_POLICY_NAME,
base.RULE_ADMIN_OR_OWNER,
"Change the administrative password for a server",
[
name=BASE_POLICY_NAME,
check_str=base.RULE_ADMIN_OR_OWNER,
description="Change the administrative password for a server",
operations=[
{
'path': '/servers/{server_id}/action (changePassword)',
'method': 'POST'
}
])
],
scope_types=['system', 'project'])
]