Skip to content

Commit

Permalink
Fix docstrings in enforce() and check() policy methods
Browse files Browse the repository at this point in the history
Proper name of the  parameter is 'target', not 'object'.

Change-Id: Ia7a671c9aed644137e4c46452d8d8bf3bc3f2eee
  • Loading branch information
Alexander Tivelkov committed Jul 2, 2014
1 parent 8c1a2d9 commit 4ca9bc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions glance/api/policy.py
Expand Up @@ -135,7 +135,7 @@ def enforce(self, context, action, target):
:param context: Glance request context
:param action: String representing the action to be checked
:param object: Dictionary representing the object of the action.
:param target: Dictionary representing the object of the action.
:raises: `glance.common.exception.Forbidden`
:returns: A non-False value if access is allowed.
"""
Expand All @@ -147,7 +147,7 @@ def check(self, context, action, target):
:param context: Glance request context
:param action: String representing the action to be checked
:param object: Dictionary representing the object of the action.
:param target: Dictionary representing the object of the action.
:returns: A non-False value if access is allowed.
"""
return self._check(context, action, target)
Expand Down

0 comments on commit 4ca9bc7

Please sign in to comment.