mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-03 22:01:39 +00:00
Merge branch 'main' of https://github.com/GAM-team/GAM
This commit is contained in:
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
@@ -884,8 +884,6 @@ jobs:
|
||||
fi
|
||||
}
|
||||
|
||||
# Ensures / means / on Windows Bash...
|
||||
export MSYS_NO_PATHCONV=1
|
||||
export gam_user="gam-gha-${JID}@pdl.jaylee.us"
|
||||
echo "gam_user=${gam_user}" >> $GITHUB_ENV
|
||||
run_gam config customer_id "C03uzfv2s" save
|
||||
@@ -955,7 +953,7 @@ jobs:
|
||||
run_gam create group $newgroup name "GHA $JID group" description "This is a description" isarchived true
|
||||
run_gam user $gam_user sendemail recipient dev-null@pdl.jaylee.us subject "test message $newbase" message "GHA test message"
|
||||
run_gam user $newuser add license workspaceenterpriseplus
|
||||
run_gam update user $newuser ou /
|
||||
run_gam update user $newuser ou root # GAM synonym for / root OU
|
||||
run_gam update user $newuser ou "$newou"
|
||||
run_gam config enable_dasa false save
|
||||
# don't expose policy output
|
||||
|
||||
@@ -1667,6 +1667,12 @@ def encodeOrgUnitPath(path):
|
||||
def getOrgUnitItem(pathOnly=False, absolutePath=True, cd=None):
|
||||
if Cmd.ArgumentsRemaining():
|
||||
path = Cmd.Current().strip()
|
||||
# Some shells like Bash for Windows interpret / as the filesystem root.
|
||||
# Let user specify "root" instead to indicate /. "/root", "Root" and "ROOT"
|
||||
# will still work for an OU actually named "root" as we are being
|
||||
# case-sensitive here for "root" but Google is not case sensitive about OUs
|
||||
if path == 'root':
|
||||
path = '/'
|
||||
if path:
|
||||
if pathOnly and (path.startswith('id:') or path.startswith('uid:')) and cd is not None:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user