Skip to content

Commit

Permalink
assignment report did not add all groups
Browse files Browse the repository at this point in the history
  • Loading branch information
almenscorner committed May 13, 2024
1 parent 29cb1b9 commit 489b377
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/IntuneCD/intunecdlib/BaseGraphModule.py
Original file line number Diff line number Diff line change
Expand Up @@ -861,9 +861,9 @@ def update_assignment(
val["target"]["deviceAndAppManagementAssignmentFilterId"]
== intune_filter["displayName"]
):
val["target"]["deviceAndAppManagementAssignmentFilterId"] = (
intune_filter["id"]
)
val["target"][
"deviceAndAppManagementAssignmentFilterId"
] = intune_filter["id"]

# If filter is None, remove keys
if val["target"]["deviceAndAppManagementAssignmentFilterId"] is None:
Expand Down
2 changes: 1 addition & 1 deletion src/IntuneCD/intunecdlib/assignment_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down

0 comments on commit 489b377

Please sign in to comment.