mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-17 04:32:51 -06:00
Fixes: #19228 - Fix ordered_scripts to only return ordered list of script objects
This commit is contained in:
parent
6c60a4360b
commit
e0a85159a6
@ -123,7 +123,7 @@ class ScriptModule(PythonModuleMixin, JobsMixin, ManagedFile):
|
|||||||
ordered = [
|
ordered = [
|
||||||
script_objects.pop(sc) for sc in self.module_scripts.keys() if sc in script_objects
|
script_objects.pop(sc) for sc in self.module_scripts.keys() if sc in script_objects
|
||||||
]
|
]
|
||||||
ordered.extend(script_objects.items())
|
ordered.extend(script_objects.values())
|
||||||
return ordered
|
return ordered
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
Loading…
Reference in New Issue
Block a user