2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-23 22:45:33 +00:00

Merge pull request #6676 from cxhong/6670

`makehosts` command failed to add nicalias regular expression to the `/etc/hosts`
This commit is contained in:
besawn
2020-04-22 18:07:13 -04:00
committed by GitHub

View File

@ -790,6 +790,11 @@ sub donics
next;
}
# for example: nicaliases.ib0=|maestro-(\d+)$|m($1)-ib0|
if ($aliases =~ /^\|\S*\|$/) {
$aliases = xCAT::Table::transRegexAttrs($node, $aliases);
}
if ($aliases =~ /\|/) {
my @names = split(/\|/, $aliases);
my $index = 0;