From c5109fbfe349a133acb179b64c8c2ed1cb4b3944 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 23 Jan 2021 09:11:18 +0100 Subject: [PATCH] bundles/icinga2: no need to do metadata.copy() here --- bundles/icinga2/items.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/icinga2/items.py b/bundles/icinga2/items.py index bba9b1a..d08918d 100644 --- a/bundles/icinga2/items.py +++ b/bundles/icinga2/items.py @@ -290,7 +290,7 @@ for n in monitored_nodes[:]: bundle_metadata = {} for monitored_node in monitored_nodes: - node_metadata = monitored_node.metadata.copy() + node_metadata = monitored_node.metadata for bundle, config in sorted(node_metadata.get('icinga2_api', {}).items()): if bundle not in bundle_metadata: