Skip to content

Commit

Permalink
Updated gam print|show chromepolicies to query all namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
taers232c committed May 17, 2023
1 parent ac5f57e commit 272ff44
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ defaults:
working-directory: src

env:
GAMVERSION: 6.59.10
GAMVERSION: 6.59.11
OPENSSL_CONFIG_OPTS: no-fips --api=3.0.0
OPENSSL_INSTALL_PATH: ${{ github.workspace }}/bin/ssl
OPENSSL_SOURCE_PATH: ${{ github.workspace }}/src/openssl
Expand Down
24 changes: 24 additions & 0 deletions src/GamUpdate.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,27 @@
6.59.11

Updated `gam print|show chromepolicies` to query the following nameapaces when
`namespace <NamespaceList>` is not specified. Previously, only the namespaces
marked with a `*` were queried. `chrome.devices.managedguest` was added in 6.59.10.
```
chrome.users *
chrome.users.apps *
chrome.users.appsconfig
chrome.devices *
chrome.devices.kiosk *
chrome.devices.kiosk.apps
chrome.devices.managedguest *
chrome.devices.managedguest.apps
chrome.networks.cellular
chrome.networks.certificates
chrome.networks.ethernet
chrome.networks.globalsettings
chrome.networks.vpn
chrome.networks.wifi
chrome.printers
chrome.printservers
```

6.59.10

Fixed bug in `gam print|show chromepolicies` where policies in namespace `chrome.devices.managedguest`
Expand Down
13 changes: 12 additions & 1 deletion src/gam/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"""

__author__ = 'Ross Scroggs <ross.scroggs@gmail.com>'
__version__ = '6.59.10'
__version__ = '6.59.11'
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'

#pylint: disable=wrong-import-position
Expand Down Expand Up @@ -24934,9 +24934,20 @@ def _printPolicy(policy):
elif not namespaces:
namespaces = ['chrome.users',
'chrome.users.apps',
'chrome.users.appsconfig',
'chrome.devices',
'chrome.devices.kiosk',
'chrome.devices.kiosk.apps',
'chrome.devices.managedguest',
'chrome.devices.managedguest.apps',
'chrome.networks.cellular',
'chrome.networks.certificates',
'chrome.networks.ethernet',
'chrome.networks.globalsettings',
'chrome.networks.vpn',
'chrome.networks.wifi',
'chrome.printers',
'chrome.printservers',
]
if csvPF and not FJQC.formatJSON:
if printerId:
Expand Down

0 comments on commit 272ff44

Please sign in to comment.