From 8cf075b62de5322861dc536e9f6900b1dafe6899 Mon Sep 17 00:00:00 2001 From: daniceexi Date: Fri, 4 May 2012 02:25:19 +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/trunk@12519 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 e72202c62..eea179acb 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -4729,6 +4729,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");