Correct docs on format for glance::policy data
Correct the format of the $policies parameter to glance::policy. That parameter is passed directly to create_resources, so it needs to be in a format acceptable to that. Just updating docs here as anyone already using the policy classes are likely not using the (incorrectly) documented format, anyway. Change-Id: I80f1f832db124eef3bfd75907e4a2dcb5a5effca Closes-bug: 1409897
This commit is contained in:
parent
30d215a784
commit
ad5bb3d76b
@ -6,7 +6,17 @@
|
|||||||
#
|
#
|
||||||
# [*policies*]
|
# [*policies*]
|
||||||
# (optional) Set of policies to configure for glance
|
# (optional) Set of policies to configure for glance
|
||||||
# Example : { 'glance-context_is_admin' => {'context_is_admin' => 'true'}, 'glance-default' => {'default' => 'rule:admin_or_owner'} }
|
# Example :
|
||||||
|
# {
|
||||||
|
# 'glance-context_is_admin' => {
|
||||||
|
# 'key' => 'context_is_admin',
|
||||||
|
# 'value' => 'true'
|
||||||
|
# },
|
||||||
|
# 'glance-default' => {
|
||||||
|
# 'key' => 'default',
|
||||||
|
# 'value' => 'rule:admin_or_owner'
|
||||||
|
# }
|
||||||
|
# }
|
||||||
# Defaults to empty hash.
|
# Defaults to empty hash.
|
||||||
#
|
#
|
||||||
# [*policy_path*]
|
# [*policy_path*]
|
||||||
|
Loading…
Reference in New Issue
Block a user