Fixed bug in gam print cigroups ... descriptionmatchpattern [not] <REMatchPattern>

This commit is contained in:
Ross Scroggs
2025-11-19 09:24:45 -08:00
parent 0e7c3bee6a
commit 944e2ed5f4
2 changed files with 8 additions and 4 deletions

View File

@@ -1,3 +1,7 @@
7.28.09
Fixed bug in `gam print cigroups ... descriptionmatchpattern [not] <REMatchPattern>` that caused a trap.
7.28.08
Updated `gam <UserTypeEntity> print|show chatmessages` to cache the sender UID to email address
@@ -17320,7 +17324,7 @@ Current version of Gam with drive_v3_name_names = false
Owner,title,parents,parents.0.id,parents.1.id
testuser@domain.com,TestFile,2,PPPP1111,PPPP2222
Current version of Gam with drive_v3_name_names = true
Current version of Gam with drive_v3_name_names = true
Owner,name,parents
testuser@domain.com,TestFile,PPPP1111 PPPP2222

View File

@@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki
"""
__author__ = 'GAM Team <google-apps-manager@googlegroups.com>'
__version__ = '7.28.08'
__version__ = '7.28.09'
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
#pylint: disable=wrong-import-position
@@ -34700,10 +34700,10 @@ def checkGroupMatchPatterns(groupEmail, group, matchPatterns):
return False
else: # field in {'name', 'displayName', 'description'}:
if not matchp['not']:
if not matchp['pattern'].match(group[field]):
if not matchp['pattern'].match(group.get(field, '')):
return False
else:
if matchp['pattern'].match(group[field]):
if matchp['pattern'].match(group.get(field, '')):
return False
return True