From 0e1efe855e9ef7169ba73bcbfbbc63b459f4397b Mon Sep 17 00:00:00 2001 From: daniceexi Date: Fri, 4 May 2012 02:18:11 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/blade.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index ef3d4a1ec..f53228197 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -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");