mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-18 13:38:16 -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']
|
||||
|
||||
if script_choice:
|
||||
module_id = script_choice.split(":")[0]
|
||||
script_name = script_choice.split(":")[1]
|
||||
module_id, script_name = script_choice.split(":", maxsplit=1)
|
||||
else:
|
||||
logger.warning(f"event run script - event_rule: {event_rule.id} no script_choice selected")
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user