2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-21 18:50:28 +00:00

refine case makeknownhosts_node_d

This commit is contained in:
litingt@cn.ibm.com
2017-08-17 23:06:05 -04:00
parent 425188dd79
commit 092dea62e9

View File

@@ -33,11 +33,13 @@ description:delete known node entry from $ROOTHOME/.ssh
cmd:makeknownhosts $$CN
cmd:cat ~/.ssh/known_hosts|grep $$CN
check:output=~$$CN
cmd:cat ~/.ssh/known_hosts|grep __GETNODEATTR($$CN,ip)__
check:rc==0
cmd:makeknownhosts $$CN -d
check:rc==0
cmd:cat ~/.ssh/known_hosts|grep $$CN
cmd:cat ~/.ssh/known_hosts|grep __GETNODEATTR($$CN,ip)__
check:rc!=0
check:output!~$$CN
check:output!~__GETNODEATTR($$CN,ip)__
end
start:makeknownhosts_node_v