summaryrefslogtreecommitdiff
path: root/setup.cfg
diff options
context:
space:
mode:
authorRabi Mishra <ramishra@redhat.com>2019-02-20 14:51:20 +0530
committerRabi Mishra <ramishra@redhat.com>2019-04-20 09:05:58 +0530
commit5bdcaeff018782a956fd8228e04ddd2169c353c6 (patch)
treee9fd1ad4e4af8acdf417874917e75f25e2e61c58 /setup.cfg
parent87b4a92a62f1f8b3af00d1e458e15d20b09a11d7 (diff)
downloadheat-5bdcaeff018782a956fd8228e04ddd2169c353c6.tar.gz
Add entry_point for oslo policy scripts
With the setup.cfg entry it can be called directly from oslo.policy. $oslopolicy-policy-generator --namespace heat This will get the effective policy that’s being executed. Change-Id: Iad2e71819f4847f47dd17d3cd4afa78e6b3f52a7 Story: #2005055 Task: 29573
Diffstat (limited to 'setup.cfg')
-rw-r--r--setup.cfg3
1 files changed, 3 insertions, 0 deletions
diff --git a/setup.cfg b/setup.cfg
index 2cdbedc91..d4580d992 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -60,6 +60,9 @@ oslo.config.opts =
oslo.config.opts.defaults =
heat.common.config = heat.common.config:set_config_defaults
+oslo.policy.enforcer =
+ heat = heat.common.policy:get_policy_enforcer
+
oslo.policy.policies =
heat = heat.policies:list_rules