From 8947209fd77881cdf71086853b3276c4784f5b37 Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 29 Jul 2013 14:24:45 -0400 Subject: [PATCH] Fix for defect 3717 --- perl-xCAT/xCAT/DSHCLI.pm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/perl-xCAT/xCAT/DSHCLI.pm b/perl-xCAT/xCAT/DSHCLI.pm index 5ba6d1c24..ecd6de7c8 100644 --- a/perl-xCAT/xCAT/DSHCLI.pm +++ b/perl-xCAT/xCAT/DSHCLI.pm @@ -5786,8 +5786,10 @@ sub bld_and_run_append # that were rsyn'd to at least one node if ($tmpappendfile eq $ps) { my $parm="$appendfile:$filetoappend "; - - $::xdcpappendparms .= $parm; + # check to see if the parameter is already in the list + if (!($::xdcpappendparms =~ /$parm/)) { + $::xdcpappendparms .= $parm; + } $processappend=1; } @@ -5923,8 +5925,10 @@ sub bld_and_run_merge # that were rsyn'd to at least one node if ($tmpmergefile eq $ps) { my $parm="$mergefile:$filetomerge "; - - $::xdcpmergeparms .= $parm; + # check to see if the parameter is already in the list + if (!($::xdcpmergeparms =~ /$parm/)) { + $::xdcpmergeparms .= $parm; + } $processmerge=1; }