mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-12 17:30:19 +00:00
Modify restapi_list_groups for correct output matching
This commit is contained in:
@ -45,7 +45,8 @@ end
|
||||
start:restapi_list_groups
|
||||
description: List groups on the management node with "curl -X GET"
|
||||
label:restapi
|
||||
cmd:username=__GETTABLEVALUE(key,system,username,passwd)__;password=__GETTABLEVALUE(key,system,password,passwd)__;xdsh $$CN "curl -X GET -s -k --cacert /root/ca-cert.pem 'https://$$MN/xcatws/groups?userName=$username&userPW=$password'"
|
||||
cmd:username=__GETTABLEVALUE(key,system,username,passwd)__;password=__GETTABLEVALUE(key,system,password,passwd)__;xdsh $$CN "curl -X GET -s -k --cacert /root/ca-cert.pem 'https://$$MN/xcatws/groups?userName=$
|
||||
username&userPW=$password' | sed 's/\"//g'"
|
||||
check:rc==0
|
||||
check:output=~__GETTABLEVALUE(node,$$CN,groups,nodelist)__
|
||||
end
|
||||
|
Reference in New Issue
Block a user