The oslo.context to_policy_values provide the standard arguments that
should be passed to oslo.policy for enforcement. By using these values
heat will automatically gain support for new things like
is_admin_project as they are supported by oslo_context.
Because previously the whole to_dict was passed to policy enforcement we
are actually removing a whole bunch of options that could be used in
policy enforcement - however from a practical perspective i'm not sure
anyone would have used them.
Reviewed: https:/ /review. openstack. org/335303 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=528945425e4 3c9c3d62c4d367b 002ec02913900c
Committed: https:/
Submitter: Jenkins
Branch: master
commit 528945425e43c9c 3d62c4d367b002e c02913900c
Author: Jamie Lennox <email address hidden>
Date: Wed Jun 29 13:38:39 2016 +1000
Use to_policy_values from context for policy
The oslo.context to_policy_values provide the standard arguments that admin_project as they are supported by oslo_context.
should be passed to oslo.policy for enforcement. By using these values
heat will automatically gain support for new things like
is_
Because previously the whole to_dict was passed to policy enforcement we
are actually removing a whole bunch of options that could be used in
policy enforcement - however from a practical perspective i'm not sure
anyone would have used them.
Closes-Bug: #1602081 f43d55104779484 b64bd28c85f
Change-Id: I244ed767e2077c