mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-09 09:08:15 -06:00
15156 remove bogus code
This commit is contained in:
parent
fbd506cb23
commit
ff2468cc9f
@ -80,11 +80,6 @@ def send_webhook(event_rule, model_name, event, data, timestamp, username, reque
|
|||||||
logger.error(f"Error forming HTTP request: {e}")
|
logger.error(f"Error forming HTTP request: {e}")
|
||||||
raise e
|
raise e
|
||||||
|
|
||||||
print('--- data ---')
|
|
||||||
print(json.dumps(data, indent=4))
|
|
||||||
print('--- snapshots ---')
|
|
||||||
print(json.dumps(snapshots, indent=4))
|
|
||||||
print("")
|
|
||||||
# If a secret key is defined, sign the request with a hash of the key and its content
|
# If a secret key is defined, sign the request with a hash of the key and its content
|
||||||
if webhook.secret != '':
|
if webhook.secret != '':
|
||||||
prepared_request.headers['X-Hook-Signature'] = generate_signature(prepared_request.body, webhook.secret)
|
prepared_request.headers['X-Hook-Signature'] = generate_signature(prepared_request.body, webhook.secret)
|
||||||
|
Loading…
Reference in New Issue
Block a user