2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-02 03:27:07 +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
commit 4a75ecff3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;