mirror of
https://github.com/TheNetworkGuy/netbox-zabbix-sync.git
synced 2025-07-16 12:12:57 -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.
|
OUTPUT: STRING - Either the single child name or child and parents.
|
||||||
"""
|
"""
|
||||||
# Check if this type of nesting is supported.
|
# 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
|
return child_object
|
||||||
# If the nested flag is True, perform parent calculation
|
# If the nested flag is True, perform parent calculation
|
||||||
if self.nested_objects[nest_type]["flag"]:
|
if self.nested_objects[nest_type]["flag"]:
|
||||||
|
Loading…
Reference in New Issue
Block a user