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:
commit
4a75ecff3b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user