Closed n-rodriguez closed 4 weeks ago
The fix
netbox@network-tools:~/netbox-sync$ git diff
diff --git a/module/netbox/object_classes.py b/module/netbox/object_classes.py
index 7f4fda1..b7d6bfc 100644
--- a/module/netbox/object_classes.py
+++ b/module/netbox/object_classes.py
@@ -1196,6 +1196,9 @@ class NBCustomField(NetBoxObject):
if isinstance(data.get("object_types"), str):
data["object_types"] = [data.get("object_types")]
+ if data.get("object_types") is None:
+ data["object_types"] = []
+
for object_type in data.get("object_types"):
if object_type not in self.valid_object_types and read_from_netbox is False:
log.error(f"Invalid content type '{object_type}' for {self.name}")
Hi there! Any news?
Sorry, currently so much other stuff going on that I barely get to do anything of that
This should be fixed with #415 in next-release
would you be able to try it out?
Hi there!
I've upgraded to netbox 4.0.1 and netbox-sync 1.6.1 and now I get this error :
Thank you!