Merge pull request #450 from netbox-community/FilterMainConfig

Fix loading main_config again during discovery of dynamic configurations
This commit is contained in:
Christian Mäder
2021-02-24 08:21:18 +01:00
committed by GitHub

View File

@ -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