Merge "Remove unneeded lookup policy check"

This commit is contained in:
Jenkins 2017-05-23 12:56:59 +00:00 committed by Gerrit Code Review
commit 3ea3771776

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,