From 0a55da08fe8531baedff3dce20f54a0f3742b775 Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 22 Jul 2013 17:09:22 +0000 Subject: [PATCH] fix defect 3707 git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@17009 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..adede62a8 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 =