Merge "Add description to policies in server_external_events.py"

This commit is contained in:
Jenkins
2017-04-07 16:25:49 +00:00
committed by Gerrit Code Review

View File

@@ -22,9 +22,16 @@ POLICY_ROOT = 'os_compute_api:os-server-external-events:%s'
server_external_events_policies = [
policy.RuleDefault(
name=POLICY_ROOT % 'create',
check_str=base.RULE_ADMIN_API),
base.create_rule_default(
POLICY_ROOT % 'create',
base.RULE_ADMIN_API,
"Creates one or more external events",
[
{
'method': 'POST',
'path': '/os-server-external-events'
}
]),
policy.RuleDefault(
name=POLICY_ROOT % 'discoverable',
check_str=base.RULE_ANY),