fix defect 3707

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@17010 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2013-07-22 17:11:01 +00:00
parent c55ab672f0
commit 383c35fb49

View File

@ -1024,8 +1024,13 @@ sub fork_fanout_dsh
&& (keys(%$targets_active) < $$options{'fanout'}))
{
my $user_target = shift @$targets_waiting;
# now add export NODE=nodename to the pre-command;
my $exportnode="export NODE=$user_target; ";
# now add export NODE=nodename to the pre-command, if not a device;
my $exportnode;
if (($$options{'devicetype'})) {
$exportnode="";
} else{
$exportnode="export NODE=$user_target; ";
}
my $target_properties = $$resolved_targets{$user_target};
my @commands;
my $localShell =