diff options
Diffstat (limited to 'keystone/policy')
-rw-r--r-- | keystone/policy/backends/rules.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/keystone/policy/backends/rules.py b/keystone/policy/backends/rules.py index 1d12a999..56c01bd3 100644 --- a/keystone/policy/backends/rules.py +++ b/keystone/policy/backends/rules.py @@ -76,14 +76,16 @@ def enforce(credentials, action, target): :param credentials: user credentials :param action: string representing the action to be checked + this should be colon separated for clarity. i.e. compute:create_instance compute:attach_volume volume:attach_volume :param object: dictionary representing the object of the action - for object creation this should be a dictionary representing the - location of the object e.g. {'tenant_id': object.tenant_id} + for object creation this should be a dictionary + representing the location of the object e.g. + {'tenant_id': object.tenant_id} :raises: `exception.Forbidden` if verification fails. |