From 383c35fb49bdd332140df8f820bb58633ce65886 Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 22 Jul 2013 17:11:01 +0000 Subject: [PATCH] fix defect 3707 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@17010 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/DSHCLI.pm | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/DSHCLI.pm b/perl-xCAT/xCAT/DSHCLI.pm index 123678b55..0d4a4f773 100644 --- a/perl-xCAT/xCAT/DSHCLI.pm +++ b/perl-xCAT/xCAT/DSHCLI.pm @@ -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 =