diff --git a/setup.cfg b/setup.cfg index c212cf0..188f4c5 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = IntuneCD -version = 2.3.2 +version = 2.3.3 author = Tobias Almén author_email = almenscorner@outlook.com description = Tool to backup and update configurations in Intune diff --git a/src/IntuneCD/intunecdlib/BaseGraphModule.py b/src/IntuneCD/intunecdlib/BaseGraphModule.py index 2f276be..5814b81 100644 --- a/src/IntuneCD/intunecdlib/BaseGraphModule.py +++ b/src/IntuneCD/intunecdlib/BaseGraphModule.py @@ -852,7 +852,7 @@ def update_assignment( val["target"]["groupId"] = request["id"] # Request filter id based on filter name - if val["target"]["deviceAndAppManagementAssignmentFilterId"]: + if "deviceAndAppManagementAssignmentFilterId" in val["target"]: filters = self.make_graph_request( endpoint="https://graph.microsoft.com/beta/deviceManagement/assignmentFilters", ) diff --git a/src/IntuneCD/intunecdlib/assignment_report.py b/src/IntuneCD/intunecdlib/assignment_report.py index 2c86034..1f27ab8 100644 --- a/src/IntuneCD/intunecdlib/assignment_report.py +++ b/src/IntuneCD/intunecdlib/assignment_report.py @@ -71,7 +71,7 @@ def _process_file(self, path, name, payload_type, groups): if not payload_added: group_data["assignedTo"][payload_type] = [payload_data] groups.append(group_data) - break + # break def _collect_groups(self, path): exclude = set(["__archive__", "Entra"]) diff --git a/src/IntuneCD/update/Intune/DeviceConfigurations.py b/src/IntuneCD/update/Intune/DeviceConfigurations.py index c97bbf6..21ca3e0 100644 --- a/src/IntuneCD/update/Intune/DeviceConfigurations.py +++ b/src/IntuneCD/update/Intune/DeviceConfigurations.py @@ -24,7 +24,7 @@ def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.path = f"{self.path}/Device Configurations/" self.assignment_endpoint = "/deviceManagement/deviceConfigurations/" - self.assignment_extra_url = "/assignments" + self.assignment_extra_url = "/assign" self.exclude_paths = [ "root['assignments']", "root['payload']",