Remove unneeded lookup policy check

Lookup endpoint currently is not part of driver passthru. This
patch removes lookup policy check from DriverPassthruController.

Change-Id: Ic3770f5f9f939184442dcba561809218a281902d
This commit is contained in:
Yuriy Zveryanskyy 2017-05-22 16:48:57 +03:00
parent 8a6c3c6108
commit ead14966c7
1 changed files with 1 additions and 4 deletions

View File

@ -285,10 +285,7 @@ class DriverPassthruController(rest.RestController):
:param data: body of data to supply to the specified method.
"""
cdict = pecan.request.context.to_policy_values()
if method == "lookup":
policy.authorize('baremetal:driver:ipa_lookup', cdict, cdict)
else:
policy.authorize('baremetal:driver:vendor_passthru', cdict, cdict)
policy.authorize('baremetal:driver:vendor_passthru', cdict, cdict)
topic = pecan.request.rpcapi.get_topic_for_driver(driver_name)
return api_utils.vendor_passthru(driver_name, method, topic, data=data,