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