🚨 Improvement in if statement order for not in list checks

This commit is contained in:
Wouter de Bruijn 2025-06-17 09:42:47 +02:00
parent 132bcc1344
commit de438777d2
No known key found for this signature in database
GPG Key ID: AC71F96733B92BFA

View File

@ -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"]: