Remove 'create_rule_default'
This is a simple wrapper for an oslo.policy function, so remove it. Also fixes the alignment in the agents policy module to be like all the others. Change-Id: I8a45cff3b1abea98bf04f111bdd6a9ace91a9980 Implements: blueprint policy-docs
This commit is contained in:
committed by
Matt Riedemann
parent
622bba1ab9
commit
145b3cc7f0
@@ -13,6 +13,8 @@
|
||||
# License for the specific language governing permissions and limitations
|
||||
# under the License.
|
||||
|
||||
from oslo_policy import policy
|
||||
|
||||
from nova.policies import base
|
||||
|
||||
|
||||
@@ -20,7 +22,7 @@ BASE_POLICY_NAME = 'os_compute_api:os-admin-password'
|
||||
|
||||
|
||||
admin_password_policies = [
|
||||
base.create_rule_default(
|
||||
policy.DocumentedRuleDefault(
|
||||
BASE_POLICY_NAME,
|
||||
base.RULE_ADMIN_OR_OWNER,
|
||||
"Change the administrative password for a server",
|
||||
|
||||
Reference in New Issue
Block a user