Update the param name in policy.enforce function

Change-Id: Idac8fa4c171352b0dc992d5be01321121e5927b2
This commit is contained in:
Jeremy Liu 2017-07-01 14:51:24 +08:00
parent 004558ae7f
commit eaabb81f2a
1 changed files with 3 additions and 3 deletions

View File

@ -55,9 +55,9 @@ def enforce(context, action, target):
``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. ``{'project_id': context.project_id}``
:param target: dictionary representing the target of the action
for target creation this should be a dictionary representing the
location of the target e.g. ``{'project_id': context.project_id}``
:raises PolicyNotAuthorized: if verification fails.