Merge "Add description to policies in server_external_events.py"
This commit is contained in:
@@ -22,9 +22,16 @@ POLICY_ROOT = 'os_compute_api:os-server-external-events:%s'
|
|||||||
|
|
||||||
|
|
||||||
server_external_events_policies = [
|
server_external_events_policies = [
|
||||||
policy.RuleDefault(
|
base.create_rule_default(
|
||||||
name=POLICY_ROOT % 'create',
|
POLICY_ROOT % 'create',
|
||||||
check_str=base.RULE_ADMIN_API),
|
base.RULE_ADMIN_API,
|
||||||
|
"Creates one or more external events",
|
||||||
|
[
|
||||||
|
{
|
||||||
|
'method': 'POST',
|
||||||
|
'path': '/os-server-external-events'
|
||||||
|
}
|
||||||
|
]),
|
||||||
policy.RuleDefault(
|
policy.RuleDefault(
|
||||||
name=POLICY_ROOT % 'discoverable',
|
name=POLICY_ROOT % 'discoverable',
|
||||||
check_str=base.RULE_ANY),
|
check_str=base.RULE_ANY),
|
||||||
|
Reference in New Issue
Block a user