From 22d5ba12ee7798b7e3c8104d8792cc09c80ab447 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sun, 22 Nov 2020 09:07:28 +0100 Subject: [PATCH] bundles/octoprint: don't try to resolve faults in metadata.py --- bundles/octoprint/metadata.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/octoprint/metadata.py b/bundles/octoprint/metadata.py index 6471333..0fa023e 100644 --- a/bundles/octoprint/metadata.py +++ b/bundles/octoprint/metadata.py @@ -22,7 +22,7 @@ defaults = { @metadata_reactor def icinga(metadata): - if not metadata.get('octoprint/api_key', None): + if 'api_key' not in metadata.get('octoprint', {}): return {} return {