fixes problem with objects wrongly marked as orphaned

refs: #17
This commit is contained in:
Ricardo Bartels
2020-11-27 14:03:40 +01:00
parent f401cd3cf3
commit dcf47bc3e1

View File

@@ -327,7 +327,7 @@ class NetBoxObject:
# try to find object.
value = self.inventory.add_update_object(defined_value_type, data=value)
# add source if item was created via this source
if value.is_new is True:
if value.source is None:
value.source = source
# add to parsed data dict