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

Fix restapi_list_groups: The command was in TWO lines, not ONE.

This commit is contained in:
Wai Yee Wong
2020-10-01 12:47:20 -04:00
parent d7fc60ed67
commit e46c41ad7d

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