2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-13 06:50:16 +00:00

Fix regex issue that duplicate the node name

close-issue: #2582
This commit is contained in:
chenglch
2017-03-03 11:06:01 +08:00
parent 4d855d24bc
commit b35ce9a148

View File

@@ -2358,6 +2358,10 @@ sub transRegexAttrs
undef $@; #extract_bracketed would have set $@ if it didn't return, undef $@
$retval = $node;
$retval =~ s/$parts[0]/$parts[1]/;
if ($retval =~ /^$/) {
return undef;
}
return $retval;
}
while ($curr)
{