2
0
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:
chenglch 2018-03-05 13:23:02 +08:00 committed by GitHub
commit a992db147c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}