Merge "Deprecate unused policy from policy doc"

This commit is contained in:
Jenkins 2017-05-26 10:18:56 +00:00 committed by Gerrit Code Review
commit 0d3003405d
3 changed files with 13 additions and 2 deletions

View File

@ -26,7 +26,8 @@ flavors_policies = [
# as such should be removed.
policy.RuleDefault(
name=BASE_POLICY_NAME,
check_str=base.RULE_ADMIN_OR_OWNER),
check_str=base.RULE_ADMIN_OR_OWNER,
description='Deprecated in Pike and will be removed in next release'),
]

View File

@ -27,7 +27,8 @@ server_groups_policies = [
# TODO(Kevin_Zheng): remove this rule as this not used by any API
policy.RuleDefault(
name=BASE_POLICY_NAME,
check_str=base.RULE_ADMIN_OR_OWNER),
check_str=base.RULE_ADMIN_OR_OWNER,
description='Deprecated in Pike and will be removed in next release'),
base.create_rule_default(
POLICY_ROOT % 'create',
BASE_POLICY_RULE,

View File

@ -0,0 +1,9 @@
---
deprecations:
- |
Some unused policies have been deprecated. These are:
* ``os_compute_api:os-server-groups``
* ``os_compute_api:flavors``
Please note you should remove these from your policy file(s).