From 34c7c3f3f9a3926f58a18dfb91272fb448e1e385 Mon Sep 17 00:00:00 2001 From: Casandra Qiu Date: Wed, 2 Dec 2015 09:48:11 -0500 Subject: [PATCH] Remove white space at the end of line for spawn strings. --- perl-xCAT/xCAT/RemoteShellExp.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/perl-xCAT/xCAT/RemoteShellExp.pm b/perl-xCAT/xCAT/RemoteShellExp.pm index df62c73fa..1991607cb 100755 --- a/perl-xCAT/xCAT/RemoteShellExp.pm +++ b/perl-xCAT/xCAT/RemoteShellExp.pm @@ -614,11 +614,11 @@ sub sendnodeskeys my $spawncopyfiles; if ($ENV{'DSH_ENABLE_SSH'}) { # we will enable node to node ssh $spawncopyfiles= - "$remotecopy $home/.ssh/id_rsa $home/.ssh/id_rsa.pub $home/.ssh/copy.sh $home/.ssh/tmp/authorized_keys $to_userid\@$node:/tmp/$to_userid/.ssh "; + "$remotecopy $home/.ssh/id_rsa $home/.ssh/id_rsa.pub $home/.ssh/copy.sh $home/.ssh/tmp/authorized_keys $to_userid\@$node:/tmp/$to_userid/.ssh"; } else { # no node to node ssh ( don't send private key) $spawncopyfiles= - "$remotecopy $home/.ssh/id_rsa.pub $home/.ssh/copy.sh $home/.ssh/tmp/authorized_keys $to_userid\@$node:/tmp/$to_userid/.ssh "; + "$remotecopy $home/.ssh/id_rsa.pub $home/.ssh/copy.sh $home/.ssh/tmp/authorized_keys $to_userid\@$node:/tmp/$to_userid/.ssh"; } # send copy command unless ($sendkeys->spawn($spawncopyfiles)) @@ -839,7 +839,7 @@ sub senddeviceskeys # command to send key to the device # sshKey add "key" my $spawnaddkey= - "$remoteshell $node -l $to_userid $setupcmd "; + "$remoteshell $node -l $to_userid $setupcmd"; # send mkdir command unless ($sendkeys->spawn($spawnaddkey))