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: