diff options
author | Asteroide <thomas.duval@orange.com> | 2018-03-12 13:23:31 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-03-12 13:23:31 +0000 |
commit | ed704f25eec7e77c893fa3598fece27471afa179 (patch) | |
tree | 109eecac2b662c13f142882735269a87fc2d9072 | |
parent | 1f25af17be6d3672e01a4a72b024afb72d57b75b (diff) | |
parent | 6d009964d8ec48ca83ed667934d249e4439a5f24 (diff) |
Merge "Fix a bug in policy generation."
-rw-r--r-- | tools/policies/generate_opst_policy.py | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/tools/policies/generate_opst_policy.py b/tools/policies/generate_opst_policy.py index 688c8d46..dd01d1c1 100644 --- a/tools/policies/generate_opst_policy.py +++ b/tools/policies/generate_opst_policy.py @@ -33,11 +33,11 @@ policy = { {"name": "demo", "description": "", "extra": {}, "policies": [{"name": "OpenStack RBAC Policy"}]} ], - "subject_categories": [{ "name":"role", "description": "a role in OpenStack" }], + "subject_categories": [{"name": "role", "description": "a role in OpenStack"}], "subject_data": [ - { "name": "admin", "description": "the admin role", "policy": {"name": "OpenStack RBAC Policy"}, "category": {"name": "role"}}, - { "name": "member", "description": "the member role", "policy": {"name": "OpenStack RBAC Policy"}, "category": {"name": "role"}} + {"name": "admin", "description": "the admin role", "policies": [], "category": {"name": "role"}}, + {"name": "member", "description": "the member role", "policies": [], "category": {"name": "role"}} ], "subject_assignments": [ @@ -45,19 +45,18 @@ policy = { {"subject": {"name": "demo"}, "category": {"name": "role"}, "assignments": [{"name": "member"}]} ], - "objects": [ + "objects": [], + + "object_categories": [{"name": "id", "description": "the UID of each virtual machine"}], + + "object_data": [ { "name": "all_vm", "description": "represents all virtual machines in this project", - "extra": {}, - "policies": [{"name": "OpenStack RBAC Policy"}] - } + "policies": [], + "category": {"name": "id"}}, ], - "object_categories": [{"name": "id", "description": "the UID of each virtual machine"}], - - "object_data": [], - "object_assignments": [], "actions": [], |