-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: 'NoneType' object is not iterable #390
Labels
awaiting reply
Awaiting reply from issue owner
Milestone
Comments
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}") |
kipp-lucas
added a commit
to heinrich-kipp-werk/NetBox-Sync-vCenter
that referenced
this issue
May 21, 2024
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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there!
I've upgraded to netbox 4.0.1 and netbox-sync 1.6.1 and now I get this error :
Thank you!
The text was updated successfully, but these errors were encountered: