diff options
author | Sujitha <sujitha.neti@intel.com> | 2017-03-22 16:31:55 +0000 |
---|---|---|
committer | John Garbutt <john@johngarbutt.com> | 2017-03-27 10:44:44 +0000 |
commit | de82b5151d7f71dc80ae63f995b556c71f70f29f (patch) | |
tree | 6c393f623669f6306435863d0502f54aae9778c5 | |
parent | 3ee4b0cf0ebd6db5118d0fcdc6f9f76e2fcd521b (diff) | |
download | nova-de82b5151d7f71dc80ae63f995b556c71f70f29f.tar.gz |
Add description to policies in console_output.py
Change-Id: Iea59686dd80e8813f88e023a09c7d6e4c4a83fa6
blueprint: policy-docs
-rw-r--r-- | nova/policies/console_output.py | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/nova/policies/console_output.py b/nova/policies/console_output.py index 527ac4db9c..3eb733b6a0 100644 --- a/nova/policies/console_output.py +++ b/nova/policies/console_output.py @@ -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)' + } + ]) ] |