fixed the case that import sshkey failed,but no error message

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12518 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2012-05-04 02:18:11 +00:00
parent 09141b389f
commit 0e1efe855e

View File

@ -4728,6 +4728,8 @@ sub sshcfg {
return([1,"Maximum number of SSH keys reached for this chassis"]);
}
return([1,$data[0]]);
} elsif (! grep /OK/, @data) {
return([1,$data[0]]);
}
# Enable ssh on MM
@data = $t->cmd("ports -sshe on -T system:$mm");