mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-13 15:24:48 -06:00
🚨 Improvement in if statement order for not in list checks
This commit is contained in:
parent
132bcc1344
commit
de438777d2
@ -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"]:
|
||||
|
Loading…
Reference in New Issue
Block a user