b46bd58e0a
With this the configuration is moved to /etc/netbox/config and the default reports directory is set to /etc/netbox/reports. This enables the user to mount reports from a config map or persistent volume in OpenShift.
11 lines
299 B
Python
11 lines
299 B
Python
import importlib.util
|
|
import sys
|
|
|
|
try:
|
|
spec = importlib.util.spec_from_file_location('ldap_config', '/etc/netbox/config/ldap_config.py')
|
|
module = importlib.util.module_from_spec(spec)
|
|
spec.loader.exec_module(module)
|
|
sys.modules['netbox.ldap_config'] = module
|
|
except:
|
|
raise ImportError('')
|