mirror of
https://github.com/netbox-community/netbox-docker.git
synced 2025-08-09 08:05:08 +02:00
Merge pull request #450 from netbox-community/FilterMainConfig
Fix loading main_config again during discovery of dynamic configurations
This commit is contained in:
@ -45,6 +45,9 @@ def read_configurations(config_module, config_dir, main_config):
|
|||||||
if not f.name.endswith(".py"):
|
if not f.name.endswith(".py"):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
if f.name == f"{main_config}.py":
|
||||||
|
continue
|
||||||
|
|
||||||
if f.name == f"{config_dir}.py":
|
if f.name == f"{config_dir}.py":
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user