mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-19 14:08:17 -06:00
14132 review change
This commit is contained in:
parent
5266109a3c
commit
d6cc025f49
@ -24,8 +24,7 @@ def process_script(event_rule, data, username, **kwargs):
|
|||||||
script_choice = event_rule.action_parameters['script_choice']
|
script_choice = event_rule.action_parameters['script_choice']
|
||||||
|
|
||||||
if script_choice:
|
if script_choice:
|
||||||
module_id = script_choice.split(":")[0]
|
module_id, script_name = script_choice.split(":", maxsplit=1)
|
||||||
script_name = script_choice.split(":")[1]
|
|
||||||
else:
|
else:
|
||||||
logger.warning(f"event run script - event_rule: {event_rule.id} no script_choice selected")
|
logger.warning(f"event run script - event_rule: {event_rule.id} no script_choice selected")
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user