make search case insensitive, uncomment tasks from main

This commit is contained in:
2025-11-07 09:54:58 -08:00
parent ee610e334b
commit 0da4a2c08a
2 changed files with 13 additions and 11 deletions
+3 -1
View File
@@ -21,7 +21,9 @@ def get_groups():
if details is None:
continue
for detail in details:
if detail['ad_group'] == group_name:
# Check if 'ad_group' exists and is not None before accessing it
ad_group = detail.get('ad_group')
if isinstance(ad_group, str) and ad_group.lower() == group_name.lower():
gpos.append({
"gpo": gpo,
"local_group": detail['local_group'],