2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-24 13:21:12 +00:00

be more explicit about default stanza naming convention

This commit is contained in:
Aaron Knister
2018-02-25 18:11:56 -05:00
parent 029cb0a27c
commit 6230706c43

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