Skip to content

Commit

Permalink
v7.00.28, policies group fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jay0lee committed Oct 23, 2024
1 parent 197bcb3 commit 36f96f7
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions docs/GamUpdates.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <UserTypeEntity> collect orphans` and all commands that print file paths to recognize
Expand Down
4 changes: 4 additions & 0 deletions src/GamUpdate.txt
Original file line number Diff line number Diff line change
@@ -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 <UserTypeEntity> collect orphans` and all commands that print file paths to recognize
Expand Down
4 changes: 2 additions & 2 deletions src/gam/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"""

__author__ = 'GAM Team <[email protected]>'
__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
Expand Down Expand Up @@ -35166,7 +35166,7 @@ def _printPolicy(policy):
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:
Expand Down

0 comments on commit 36f96f7

Please sign in to comment.