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
commit 6cd156f7d5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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