Skip to content

Commit

Permalink
Fixes netbox-community#16025: Fix execution of scripts via the runscr…
Browse files Browse the repository at this point in the history
…ipt management command
  • Loading branch information
jeremystretch committed May 8, 2024
1 parent 5c5c0e1 commit ff8dabe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions netbox/extras/management/commands/runscript.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ def _run_script():

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']:
Expand Down

0 comments on commit ff8dabe

Please sign in to comment.