Skip to content

Commit

Permalink
fixes issue with unserolved objects in first run of NetBox sync #120
Browse files Browse the repository at this point in the history
refs: #120
  • Loading branch information
bb-Ricardo committed Jan 25, 2022
1 parent c8f3aca commit 4410d6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module/netbox/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -665,6 +665,8 @@ def update_object(self, nb_object_sub_class, unset=False, last_run=False):

this_object.update(data=returned_object_data, read_from_netbox=True)

this_object.resolve_relations()

elif issued_request is True:
log.error(f"Request Failed for {nb_object_sub_class.name}. Used data: {data_to_patch}")

Expand Down

0 comments on commit 4410d6d

Please sign in to comment.