Merge "Add policy description for 'limits'"
This commit is contained in:
commit
093fe3c742
|
@ -13,8 +13,6 @@
|
|||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from oslo_policy import policy
|
||||
|
||||
from nova.policies import base
|
||||
|
||||
|
||||
|
@ -22,9 +20,16 @@ BASE_POLICY_NAME = 'os_compute_api:limits'
|
|||
|
||||
|
||||
limits_policies = [
|
||||
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,
|
||||
"""Shows rate and absolute limits for the project.""",
|
||||
[
|
||||
{
|
||||
'method': 'GET',
|
||||
'path': '/limits'
|
||||
}
|
||||
]),
|
||||
]
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue