mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-24 20:52:08 +00:00
Merge pull request #4845 from aaronknister/tweak-default-stanza-handling
fixes to default stanza handling
This commit is contained in:
commit
a992db147c
@ -1676,13 +1676,10 @@ sub readFileInput
|
||||
|
||||
# could have different default stanzas for different object types
|
||||
|
||||
if ($objectname =~ /default/) {
|
||||
if ($objectname =~ /^default-([^-]+)$/) {
|
||||
|
||||
($junk1, $objtype) = split(/-/, $objectname);
|
||||
|
||||
if ($objtype) {
|
||||
$objectname = 'default';
|
||||
}
|
||||
$objtype = $1;
|
||||
$objectname = 'default';
|
||||
|
||||
next;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user