2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-20 02:00:24 +00:00

Merge pull request #6846 from peterwywong/list_groups_2

Fix restapi_list_groups: The command was in TWO lines, not ONE.
This commit is contained in:
besawn
2020-10-01 14:07:03 -04:00
committed by GitHub

View File

@@ -45,8 +45,7 @@ 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' | sed 's/\"//g'"
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