Fix warnings for deprecated JSON policy file
In `oslo.policy`, JSON formatted policy file had been deprecated until Victoria release. Although it's still supported, recommended to use the newer YAML format [1]. For Tacker, it uses `policy.json` in unittest and causes many warnings in the result which makes developers hard to find a problem. [1] https://docs.openstack.org/oslo.policy/victoria/admin/policy-json-file.html Closes-bug: #1900312 Change-Id: I47f7d3e1c2425dc6bbdf0a9ae8e7bc28b99f0aae Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
This commit is contained in:
parent
78a753d564
commit
82a8cac5d2
|
@ -1,10 +0,0 @@
|
|||
{
|
||||
"context_is_admin": "role:admin",
|
||||
"admin_or_owner": "rule:context_is_admin or tenant_id:%(tenant_id)s",
|
||||
"admin_only": "rule:context_is_admin",
|
||||
"regular_user": "",
|
||||
"shared": "field:vims:shared=True",
|
||||
"default": "rule:admin_or_owner",
|
||||
|
||||
"get_vim": "rule:admin_or_owner or rule:shared"
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
"context_is_admin": "role:admin",
|
||||
"admin_or_owner": "rule:context_is_admin or tenant_id:%(tenant_id)s",
|
||||
"admin_only": "rule:context_is_admin",
|
||||
"regular_user": "",
|
||||
"shared": "field:vims:shared=True",
|
||||
"default": "rule:admin_or_owner",
|
||||
|
||||
"get_vim": "rule:admin_or_owner or rule:shared"
|
Loading…
Reference in New Issue