summaryrefslogtreecommitdiffstats
path: root/keystone/policy
diff options
context:
space:
mode:
authorJoe Heck <heckj@mac.com>2012-03-14 17:19:37 +0000
committerJoe Heck <heckj@mac.com>2012-03-14 17:20:01 +0000
commit56e41037ba41b2507722dcbc54157cfe4cf4535f (patch)
tree1406a7cada4333a4b496603c84419fca2d3a9efe /keystone/policy
parentb03c2047815ff341547d2d9792dfd392148d277a (diff)
downloadkeystone-56e41037ba41b2507722dcbc54157cfe4cf4535f.tar.gz
keystone-56e41037ba41b2507722dcbc54157cfe4cf4535f.tar.xz
keystone-56e41037ba41b2507722dcbc54157cfe4cf4535f.zip
docstring cleanup to remove sphinx warnings
Change-Id: Icfc273f2466f48307d2addd22b70f1759d23fd97
Diffstat (limited to 'keystone/policy')
-rw-r--r--keystone/policy/backends/rules.py6
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.