diff options
author | Zhao Chao <zhaochao1984@gmail.com> | 2018-02-12 15:19:58 +0800 |
---|---|---|
committer | Zhao Chao <zhaochao1984@gmail.com> | 2018-02-12 18:11:22 +0800 |
commit | 71ebd353ca79088dd737d5651829ef51829d67dc (patch) | |
tree | eabf21c4f45593ecd9f593cc02fd2a69cfb401d7 /setup.cfg | |
parent | f0c03c114e93cd580f74d4c31d51760b7a511d29 (diff) | |
download | trove-71ebd353ca79088dd737d5651829ef51829d67dc.tar.gz |
Generate policy sample file automatically.
A new entrypoint in setup.cfg and a config file are added for
using olso.policy helper script to generate the sample file.
A new tox target also is added to simplify the environment
setting up. Now policy sample file can be generated
automatically, so the in-repo sample file is no longer needed.
Co-Authored-By: Andrew Laski <andrew@lascii.com>
Partial-Implements: blueprint policy-in-code
Change-Id: Ic336fa154ccc05b5e9db3a8e751a484b1cc5aa9c
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
Diffstat (limited to 'setup.cfg')
-rw-r--r-- | setup.cfg | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -50,6 +50,13 @@ oslo.messaging.notify.drivers = trove.openstack.common.notifier.rpc_notifier = oslo_messaging.notify.messaging:MessagingDriver trove.openstack.common.notifier.test_notifier = oslo_messaging.notify._impl_test:TestDriver +oslo.policy.policies = + # The sample policies will be ordered by entry point and then by list + # returned from that entry point. If more control is desired split out each + # list_rules method into a separate entry point rather than using the + # aggregate method. + trove = trove.common.policies:list_rules + [global] setup-hooks = pbr.hooks.setup_hook |