We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 72d1daa commit b40a76cCopy full SHA for b40a76c
2 files changed
nautobot_ssot/integrations/utils.py
@@ -13,7 +13,7 @@
13
14
def each_enabled_integration() -> Generator[str, None, None]:
15
"""Return all enabled integrations."""
16
- config = settings.PLUGINS_CONFIG["nautobot_ssot"]
+ config = settings.PLUGINS_CONFIG.get("nautobot_ssot", {})
17
18
for path in Path(__file__).parent.iterdir():
19
if config.get(f"enable_{path.name}", False):
nautobot_ssot/jobs/__init__.py
@@ -14,7 +14,7 @@
logger = logging.getLogger("nautobot.ssot")
-hide_jobs_setting = settings.PLUGINS_CONFIG["nautobot_ssot"].get("hide_example_jobs", False)
+hide_jobs_setting = settings.PLUGINS_CONFIG.get("nautobot_ssot", {}).get("hide_example_jobs", False)
if is_truthy(hide_jobs_setting):
jobs = []
20
else:
0 commit comments