mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 13:08:16 -06:00
14438 docstring
This commit is contained in:
parent
785ff3486b
commit
4733376867
@ -131,6 +131,10 @@ class ScriptModule(PythonModuleMixin, JobsMixin, ManagedFile):
|
|||||||
return scripts
|
return scripts
|
||||||
|
|
||||||
def sync_classes(self):
|
def sync_classes(self):
|
||||||
|
"""
|
||||||
|
Sync's the file based module to the database objects - adding and
|
||||||
|
removing python classes from the DB as appropriate.
|
||||||
|
"""
|
||||||
db_classes = {
|
db_classes = {
|
||||||
script.name: script for script in self.scripts.all()
|
script.name: script for script in self.scripts.all()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user