Add description to policies in console_output.py

Change-Id: Iea59686dd80e8813f88e023a09c7d6e4c4a83fa6
blueprint: policy-docs
This commit is contained in:
Sujitha 2017-03-22 16:31:55 +00:00 committed by John Garbutt
parent 3ee4b0cf0e
commit de82b5151d

View File

@ -26,9 +26,16 @@ console_output_policies = [
policy.RuleDefault(
name=POLICY_ROOT % 'discoverable',
check_str=base.RULE_ANY),
policy.RuleDefault(
name=BASE_POLICY_NAME,
check_str=base.RULE_ADMIN_OR_OWNER),
base.create_rule_default(
BASE_POLICY_NAME,
base.RULE_ADMIN_OR_OWNER,
'Show console output for a server',
[
{
'method': 'POST',
'path': '/servers/{server_id}/action (os-getConsoleOutput)'
}
])
]