mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-12 10:38:16 -06:00
Fixes #16025: Fix execution of scripts via the runscript management command
This commit is contained in:
parent
195dbaed00
commit
7757efeabe
@ -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']:
|
||||
|
Loading…
Reference in New Issue
Block a user