mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-28 03:16:25 -06:00
18423 scripts upload to django-storages
This commit is contained in:
parent
78ae2fdc2a
commit
d832314c29
@ -369,7 +369,6 @@ class BaseScript:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def source(self):
|
def source(self):
|
||||||
breakpoint()
|
|
||||||
return inspect.getsource(self.__class__)
|
return inspect.getsource(self.__class__)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
@ -556,7 +555,6 @@ class BaseScript:
|
|||||||
Run the report and save its results. Each test method will be executed in order.
|
Run the report and save its results. Each test method will be executed in order.
|
||||||
"""
|
"""
|
||||||
self.logger.info("Running report")
|
self.logger.info("Running report")
|
||||||
|
|
||||||
try:
|
try:
|
||||||
for test_name in self.tests:
|
for test_name in self.tests:
|
||||||
self._current_test = test_name
|
self._current_test = test_name
|
||||||
@ -602,6 +600,5 @@ def is_variable(obj):
|
|||||||
|
|
||||||
def get_module_and_script(module_name, script_name):
|
def get_module_and_script(module_name, script_name):
|
||||||
module = ScriptModule.objects.get(file_path=f'{module_name}.py')
|
module = ScriptModule.objects.get(file_path=f'{module_name}.py')
|
||||||
breakpoint()
|
|
||||||
script = module.scripts.get(name=script_name)
|
script = module.scripts.get(name=script_name)
|
||||||
return module, script
|
return module, script
|
||||||
|
Loading…
Reference in New Issue
Block a user