From de438777d2392648b1ce9d96adfa2e59e211865b Mon Sep 17 00:00:00 2001 From: Wouter de Bruijn Date: Tue, 17 Jun 2025 09:42:47 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A8=20Improvement=20in=20if=20statemen?= =?UTF-8?q?t=20order=20for=20not=20in=20list=20checks?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hostgroups.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/hostgroups.py b/modules/hostgroups.py index 8bbec86..213c093 100644 --- a/modules/hostgroups.py +++ b/modules/hostgroups.py @@ -184,7 +184,7 @@ class Hostgroup: OUTPUT: STRING - Either the single child name or child and parents. """ # Check if this type of nesting is supported. - if not nest_type in self.nested_objects: + if nest_type not in self.nested_objects: return child_object # If the nested flag is True, perform parent calculation if self.nested_objects[nest_type]["flag"]: