Skip to content

Commit 302f23b

Browse files
author
Anthony Ruhier
committed
Fix get on interface connection with netbox 2.4
1 parent f78c6a2 commit 302f23b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

netboxapi/mapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def _build_new_mapper_from(
242242
mapper.__upstream_attrs__ = []
243243
mapper.__foreign_keys__ = []
244244
for attr, val in mapper_attributes.items():
245-
if isinstance(val, dict) and "id" in val:
245+
if isinstance(val, dict) and "id" in val and "url" in val:
246246
mapper.__foreign_keys__.append(attr)
247247
mapper._set_property_foreign_key(attr, val)
248248
else:

0 commit comments

Comments
 (0)