diff --git a/xCAT-server-2.0/lib/xcat/plugins/credentials.pm b/xCAT-server-2.0/lib/xcat/plugins/credentials.pm index bd9bdfc0d..b3c9490d9 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/credentials.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/credentials.pm @@ -108,7 +108,7 @@ sub process_request open($tmpfile,"/root/.ssh/id_rsa"); @filecontent=<$tmpfile>; close($tmpfile); - $retdata = join('',@filecontent); + $retdata = "\n".join('',@filecontent); push @{$rsp->{'data'}},{content=>[$retdata],desc=>[$_]}; $retdata=""; @filecontent=();