Correct problem where /// regexes corrupt other substitutions

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15021 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-01-30 16:33:02 +00:00
parent ea6d9f7081
commit ef9100c56e

View File

@ -2286,8 +2286,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} =~ /^\|.*\|.*\|$/)
{