From 365e767cee9ccabc28e7dfb0f431097ea31aa556 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Wed, 30 Jan 2013 16:32:50 +0000 Subject: [PATCH] Correct problem where /// regexes corrupt other substitutions git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@15020 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Table.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/Table.pm b/perl-xCAT/xCAT/Table.pm index cbe3ce498..b9e384063 100644 --- a/perl-xCAT/xCAT/Table.pm +++ b/perl-xCAT/xCAT/Table.pm @@ -2314,8 +2314,9 @@ sub getNodeAttribs my $exp = substr($datum->{$attrib}, 1); chop $exp; my @parts = split('/', $exp, 2); - $node =~ s/$parts[0]/$parts[1]/; - $datum->{$attrib} = $node; + my $retval = $node; + $retval =~ s/$parts[0]/$parts[1]/; + $datum->{$attrib} = $retval; } elsif ($datum->{$attrib} =~ /^\|.*\|.*\|$/) {