2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-17 20:00:19 +00:00

Merge pull request from peterwywong/list_groups

Modify restapi_list_groups for correct output matching
This commit is contained in:
besawn
2020-09-30 17:03:53 -04:00
committed by GitHub

@ -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