Merge "Remove deprecated heartbeat policy check"
This commit is contained in:
commit
5071b99835
@ -1080,10 +1080,7 @@ class NodeVendorPassthruController(rest.RestController):
|
|||||||
:param data: body of data to supply to the specified method.
|
:param data: body of data to supply to the specified method.
|
||||||
"""
|
"""
|
||||||
cdict = pecan.request.context.to_policy_values()
|
cdict = pecan.request.context.to_policy_values()
|
||||||
if method == 'heartbeat':
|
policy.authorize('baremetal:node:vendor_passthru', cdict, cdict)
|
||||||
policy.authorize('baremetal:node:ipa_heartbeat', cdict, cdict)
|
|
||||||
else:
|
|
||||||
policy.authorize('baremetal:node:vendor_passthru', cdict, cdict)
|
|
||||||
|
|
||||||
# Raise an exception if node is not found
|
# Raise an exception if node is not found
|
||||||
rpc_node = api_utils.get_rpc_node(node_ident)
|
rpc_node = api_utils.get_rpc_node(node_ident)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user