Use ADMIN_ONLY constant in policy rules

It is follow up patch for [1] to use constant RULE_ADMIN_ONLY
in neutron.conf.policies.port module.

TrivialFix

[1] https://review.openstack.org/#/c/590363/

Change-Id: Ic97c61c2d9cff5a96cfed6e4df33161fae0b75a4
This commit is contained in:
Slawek Kaplonski 2019-01-02 16:40:55 +01:00
parent 6e5349963f
commit 41fe4e9629
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ rules = [
description='Access rule for getting binding profile of port'),
policy.RuleDefault(
'get_port:resource_request',
'rule:admin_only',
base.RULE_ADMIN_ONLY,
description='Access rule for getting resource request of port'),
# TODO(amotoki): Add get_port:binding:vnic_type
# TODO(amotoki): Add get_port:binding:data_plane_status