Remove unused policy check

The "version:get" check is not used in barbican, remove it from policies.

Change-Id: I9d6a50edd6908af82d5789756c94927aeddd7a54
This commit is contained in:
yushangbin 2017-08-31 16:30:44 +08:00
parent d14cf4b15b
commit 6c422cdb79
2 changed files with 0 additions and 25 deletions
barbican/common/policies

@ -23,7 +23,6 @@ from barbican.common.policies import secretmeta
from barbican.common.policies import secrets
from barbican.common.policies import secretstores
from barbican.common.policies import transportkeys
from barbican.common.policies import versions
def list_rules():
@ -39,5 +38,4 @@ def list_rules():
secrets.list_rules(),
secretstores.list_rules(),
transportkeys.list_rules(),
versions.list_rules(),
)

@ -1,23 +0,0 @@
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
from oslo_policy import policy
rules = [
policy.RuleDefault('version:get',
'@')
]
def list_rules():
return rules