mirror of
https://github.com/GAM-team/GAM.git
synced 2025-07-07 13:13:34 +00:00
quick fixes
This commit is contained in:
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -557,7 +557,7 @@ jobs:
|
|||||||
$gam oauth info
|
$gam oauth info
|
||||||
$gam info domain
|
$gam info domain
|
||||||
$gam oauth refresh
|
$gam oauth refresh
|
||||||
$gam info use
|
$gam info user
|
||||||
export tstamp=$($PYTHON -c "import time; print(time.time_ns())")
|
export tstamp=$($PYTHON -c "import time; print(time.time_ns())")
|
||||||
export newbase=gha_test_$JID_$tstamp
|
export newbase=gha_test_$JID_$tstamp
|
||||||
export newuser=$newbase@pdl.jaylee.us
|
export newuser=$newbase@pdl.jaylee.us
|
||||||
|
@ -239,6 +239,8 @@ def create_credentials():
|
|||||||
controlflow.system_error_exit(3,
|
controlflow.system_error_exit(3,
|
||||||
'Create did not finish {result}')
|
'Create did not finish {result}')
|
||||||
|
|
||||||
|
|
||||||
|
'''gam delete inboundssocredential'''
|
||||||
def delete_credentials(ci=None, name=None):
|
def delete_credentials(ci=None, name=None):
|
||||||
if not ci:
|
if not ci:
|
||||||
ci = build()
|
ci = build()
|
||||||
@ -253,6 +255,7 @@ def delete_credentials(ci=None, name=None):
|
|||||||
controlflow.system_error_exit(3, 'Delete did not finish {result}')
|
controlflow.system_error_exit(3, 'Delete did not finish {result}')
|
||||||
|
|
||||||
|
|
||||||
|
'''gam print inboundssocredentials'''
|
||||||
def print_credentials():
|
def print_credentials():
|
||||||
ci = build()
|
ci = build()
|
||||||
i = 3
|
i = 3
|
||||||
@ -284,6 +287,8 @@ def print_credentials():
|
|||||||
display.print_json(c)
|
display.print_json(c)
|
||||||
print()
|
print()
|
||||||
|
|
||||||
|
|
||||||
|
'''parse command for create/update inboundssoassignment'''
|
||||||
def parse_assignment(body, i, ci):
|
def parse_assignment(body, i, ci):
|
||||||
while i < len(sys.argv):
|
while i < len(sys.argv):
|
||||||
myarg = sys.argv[i].lower().replace('_', '')
|
myarg = sys.argv[i].lower().replace('_', '')
|
||||||
@ -326,6 +331,7 @@ def parse_assignment(body, i, ci):
|
|||||||
return body
|
return body
|
||||||
|
|
||||||
|
|
||||||
|
'''gam create inboundssoassignment'''
|
||||||
def create_assignment():
|
def create_assignment():
|
||||||
ci = build()
|
ci = build()
|
||||||
body = {
|
body = {
|
||||||
@ -338,6 +344,7 @@ def create_assignment():
|
|||||||
display.print_json(result)
|
display.print_json(result)
|
||||||
|
|
||||||
|
|
||||||
|
'''gam update inboundssoassignment'''
|
||||||
def update_assignment():
|
def update_assignment():
|
||||||
ci = build()
|
ci = build()
|
||||||
name = sys.argv[3]
|
name = sys.argv[3]
|
||||||
@ -352,6 +359,8 @@ def update_assignment():
|
|||||||
)
|
)
|
||||||
display.print_json(result)
|
display.print_json(result)
|
||||||
|
|
||||||
|
|
||||||
|
'''gam print inboundssoassignments'''
|
||||||
def print_assignments():
|
def print_assignments():
|
||||||
ci = build()
|
ci = build()
|
||||||
customer = get_sso_customer()
|
customer = get_sso_customer()
|
||||||
|
Reference in New Issue
Block a user