From 4e7854c57126da243fb31a33ead38a48e9535cb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Alm=C3=A9n?= <78877636+almenscorner@users.noreply.github.com> Date: Wed, 20 Mar 2024 11:28:33 +0100 Subject: [PATCH] fix assignment removal endpoint --- src/IntuneCD/update/Intune/WindowsEnrollmentProfile.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/IntuneCD/update/Intune/WindowsEnrollmentProfile.py b/src/IntuneCD/update/Intune/WindowsEnrollmentProfile.py index 441e13c8..e92f1d2d 100644 --- a/src/IntuneCD/update/Intune/WindowsEnrollmentProfile.py +++ b/src/IntuneCD/update/Intune/WindowsEnrollmentProfile.py @@ -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"])