From a0ca74aade6e4832e020cf10d1ef72acc7d1394e Mon Sep 17 00:00:00 2001 From: Noah Date: Thu, 28 Aug 2025 10:30:47 +1000 Subject: [PATCH] Undid part of a previous commit, to undo a mistake --- module/netbox/object_classes.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/netbox/object_classes.py b/module/netbox/object_classes.py index b5592aa..e21540a 100644 --- a/module/netbox/object_classes.py +++ b/module/netbox/object_classes.py @@ -2168,10 +2168,10 @@ class NBIPAddress(NetBoxObject): if source is not None: if source.source_type == "vmware": config_relation = source.get_object_relation(assigned_object, "skip_fhrp_group_ips") - if config_relation == True and grab(previous_ip_device_vm, "data.assigned_object_type") == "ipam.fhrpgroup": + if config_relation == True and object_type == "ipam.fhrpgroup": log.debug(f"IP address with id '{assigned_object}' assigned to FHRP group. Skipping.") return - elif grab(previous_ip_device_vm, "data.assigned_object_type") == "ipam.fhrpgroup": + elif object_type == "ipam.fhrpgroup": log.debug(f"IP address with id '{assigned_object}' assigned to FHRP group. It was manually created. Skipping.") return