Merge "Remove Rules.load_json warning"

This commit is contained in:
Jenkins
2017-01-05 20:54:24 +00:00
committed by Gerrit Code Review
+1 -2
View File
@@ -35,8 +35,7 @@ def placement_init():
# convenient for initial exploration. We will need to
# determine how to manage authorization/policy and
# implement that, probably per handler.
rules = policy.Rules.load_json(
jsonutils.dumps({'placement': 'role:admin'}))
rules = policy.Rules.load(jsonutils.dumps({'placement': 'role:admin'}))
# Enforcer is initialized so that the above rule is loaded in and no
# policy file is read.
# TODO(alaski): Register a default rule rather than loading it in like