diff --git a/xCAT-server/lib/xcat/plugins/tabutils.pm b/xCAT-server/lib/xcat/plugins/tabutils.pm index 4548f4f48..d3db222c8 100644 --- a/xCAT-server/lib/xcat/plugins/tabutils.pm +++ b/xCAT-server/lib/xcat/plugins/tabutils.pm @@ -827,6 +827,8 @@ sub nodels } elsif ($temp =~ /^[^=]*=~/) { ($temp,$value) = split /=~/,$temp,2; + $value =~ s/^\///; + $value =~ s/\/$//; $matchtype='regex'; } elsif ($temp =~ /[^=]*==/) { @@ -835,6 +837,8 @@ sub nodels } elsif ($temp =~ /[^=]*!~/) { ($temp,$value) = split /!~/,$temp,2; + $value =~ s/^\///; + $value =~ s/\/$//; $matchtype='negex'; } if ($shortnames{$temp})