diff options
author | Jenkins <jenkins@review.openstack.org> | 2012-03-19 18:01:19 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2012-03-19 18:01:19 +0000 |
commit | 5027c9d7150815abe1dde7e4d85d41eb2d0fad4d (patch) | |
tree | 42d2b9f0974975d76467e625f4c95b1000b2d40b /keystone/policy | |
parent | 7c1e32bba6837eb0937e6e7567aa5e7981db7fec (diff) | |
parent | 56e41037ba41b2507722dcbc54157cfe4cf4535f (diff) | |
download | keystone-5027c9d7150815abe1dde7e4d85d41eb2d0fad4d.tar.gz keystone-5027c9d7150815abe1dde7e4d85d41eb2d0fad4d.tar.xz keystone-5027c9d7150815abe1dde7e4d85d41eb2d0fad4d.zip |
Merge "docstring cleanup to remove sphinx warnings"
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. |