Merge "Remove deprecated heartbeat policy check"

This commit is contained in:
Jenkins 2017-02-01 23:41:55 +00:00 committed by Gerrit Code Review
commit 5071b99835
1 changed files with 1 additions and 4 deletions

View File

@ -1080,10 +1080,7 @@ class NodeVendorPassthruController(rest.RestController):
:param data: body of data to supply to the specified method.
"""
cdict = pecan.request.context.to_policy_values()
if method == 'heartbeat':
policy.authorize('baremetal:node:ipa_heartbeat', cdict, cdict)
else:
policy.authorize('baremetal:node:vendor_passthru', cdict, cdict)
policy.authorize('baremetal:node:vendor_passthru', cdict, cdict)
# Raise an exception if node is not found
rpc_node = api_utils.get_rpc_node(node_ident)