Skip to content

Commit

Permalink
fix assignment removal endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
almenscorner committed Mar 20, 2024
1 parent 00fb248 commit 4e7854c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/IntuneCD/update/Intune/WindowsEnrollmentProfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,7 @@ def main(self) -> dict[str, any]:

for item in intune_data["value"]:
# Remvoe any assignments before removing the profile
endpoint = (
f"{self.CONFIG_ENDPOINT}{item['id']}{self.assignment_extra_url}"
)
endpoint = f"{self.endpoint}{self.CONFIG_ENDPOINT}{item['id']}{self.assignment_extra_url}"
self.make_graph_request(endpoint, method="delete", status_code=200)
self.remove_downstream_data(self.CONFIG_ENDPOINT, intune_data["value"])

Expand Down

0 comments on commit 4e7854c

Please sign in to comment.