diff --git a/docs/GamUpdates.md b/docs/GamUpdates.md index 0e503922..10b7a0e7 100644 --- a/docs/GamUpdates.md +++ b/docs/GamUpdates.md @@ -10,6 +10,10 @@ Add the `-s` option to the end of the above commands to suppress creating the `g See [Downloads-Installs-GAM7](https://github.com/GAM-team/GAM/wiki/Downloads-Installs) for Windows or other options, including manual installation +7.00.28 + +Fix issue that cause print/show policies to fail on some group policies. + 7.00.27 Updated `gam collect orphans` and all commands that print file paths to recognize diff --git a/src/GamUpdate.txt b/src/GamUpdate.txt index 8a375974..c587f17c 100644 --- a/src/GamUpdate.txt +++ b/src/GamUpdate.txt @@ -1,3 +1,7 @@ +7.00.28 + +Fix issue that cause print/show policies to fail on some group policies. + 7.00.27 Updated `gam collect orphans` and all commands that print file paths to recognize diff --git a/src/gam/__init__.py b/src/gam/__init__.py index 9d2a75ae..38f8bd2c 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki """ __author__ = 'GAM Team ' -__version__ = '7.00.27' +__version__ = '7.00.28' __license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)' #pylint: disable=wrong-import-position @@ -35166,7 +35166,7 @@ def doPrintCIPolicies(): if groupId := policy['policyQuery'].get('group'): _, _, policy['policyQuery']['groupEmail'] = convertGroupCloudIDToEmail(groups_ci, groupId) # all groups are in the root OU so the orgUnit attribute is useless - policy['policyQuery'].pop('orgUnit') + policy['policyQuery'].pop('orgUnit', None) elif orgId := policy['policyQuery'].get('orgUnit'): policy['policyQuery']['orgUnitPath'] = convertOrgUnitIDtoPath(cd, orgId) if not csvPF: