From e02fc9d5463c231a65e1beeb0863b56c0b348a42 Mon Sep 17 00:00:00 2001 From: mellor Date: Mon, 22 Nov 2010 19:40:35 +0000 Subject: [PATCH] defect 3108411: rollupdate - remove old XCAT_UPDATEALL LL machine feature values git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8234 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/rollupdate.pm | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/rollupdate.pm b/xCAT-server/lib/xcat/plugins/rollupdate.pm index 9567af377..8c1698e8a 100644 --- a/xCAT-server/lib/xcat/plugins/rollupdate.pm +++ b/xCAT-server/lib/xcat/plugins/rollupdate.pm @@ -1221,10 +1221,16 @@ sub set_LL_feature { my @llfeatures; my $haveit = 0; if ( $llcfgout =~ /:FEATURE =/ ) { - my ($stuff,$newfeature_string) = split(/=/,$llcfgout); + my ($stuff,$curfeature_string) = split(/=/,$llcfgout); + my $newfeature_string = ""; my ($machine,$morestuff) = split(/:/,$stuff); - @llfeatures = split(/\s+/,$newfeature_string); + @llfeatures = split(/\s+/,$curfeature_string); foreach my $f (@llfeatures) { + if ($f =~ /XCAT_UPDATEALL\d*/) { + $f = ""; + } else { + $newfeature_string .= " $f"; + } if ($f eq $feature){ $haveit = 1; }