2
0
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:
Wai Yee Wong
2020-09-30 15:56:10 -04:00
parent daf642fdf7
commit dda618c903

View File

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