From ff8dabe8d92f7325ea8231b9e9fdf69d8df6da0f Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 8 May 2024 10:07:22 -0400 Subject: [PATCH] Fixes #16025: Fix execution of scripts via the runscript management command --- netbox/extras/management/commands/runscript.py | 1 + 1 file changed, 1 insertion(+) diff --git a/netbox/extras/management/commands/runscript.py b/netbox/extras/management/commands/runscript.py index 160e8813f..ef1bd5141 100644 --- a/netbox/extras/management/commands/runscript.py +++ b/netbox/extras/management/commands/runscript.py @@ -85,6 +85,7 @@ class Command(BaseCommand): module_name, script_name = script.split('.', 1) module, script = get_module_and_script(module_name, script_name) + script = script.python_class # Take user from command line if provided and exists, other if options['user']: