From bca1cf9623ce3bd8211f37b25ab09da4be5e0a69 Mon Sep 17 00:00:00 2001 From: "max.sickora" Date: Tue, 10 Sep 2024 15:57:43 +0200 Subject: [PATCH] littleblackening --- plugins/inventory/checkmk.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/inventory/checkmk.py b/plugins/inventory/checkmk.py index d828d9186..1968cb657 100644 --- a/plugins/inventory/checkmk.py +++ b/plugins/inventory/checkmk.py @@ -125,9 +125,11 @@ def _generate_groups(self): for hosttaggroups in self.hosttaggroups: if len(hosttaggroups.get("tags")) > 1: hosttags += [ - "tag_" + hosttaggroups.get("id") + "_" + tag.get("id") - if tag.get("id") - else "tag_" + hosttaggroups.get("id") + "_None" + ( + "tag_" + hosttaggroups.get("id") + "_" + tag.get("id") + if tag.get("id") + else "tag_" + hosttaggroups.get("id") + "_None" + ) for tag in (hosttaggroups.get("tags")) ] else: