Skip to content

Commit

Permalink
Merge pull request #637 from michalis1/mm/fix-issue-634
Browse files Browse the repository at this point in the history
Service Now Integration - Fixes issue #634
  • Loading branch information
Kircheneer authored Dec 20, 2024
2 parents 40beb51 + 187dd48 commit 436b504
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions changes/634.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed load locations on the source adapter for the ServiceNow integration when a site filter is applied.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def load_locations(self):
"""Load Nautobot Location objects as DiffSync Location models."""
if self.site_filter is not None:
# Load only direct ancestors of the given Site
locations = []
locations = [self.site_filter]
ancestor = self.site_filter.parent
while ancestor is not None:
locations.insert(0, ancestor)
Expand Down

0 comments on commit 436b504

Please sign in to comment.