mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 03:32:04 +00:00
fix issue "xCAT Object Name Format" error when trying to name osimages starting with "rhels7.3" #2157
This commit is contained in:
parent
ba63e78399
commit
b0791921bb
@ -1546,7 +1546,12 @@ sub defmk
|
||||
my $invalidobjname = ();
|
||||
my $invalidnodename = ();
|
||||
foreach my $node (@::allobjnames) {
|
||||
unless(isobjnamevalid($node,$::opt_t)){
|
||||
my $myobjtype=$::opt_t;
|
||||
if(!$myobjtype and $::FILEATTRS{$node}{'objtype'}){
|
||||
$myobjtype=$::FILEATTRS{$node}{'objtype'};
|
||||
}
|
||||
|
||||
unless(isobjnamevalid($node,$myobjtype)){
|
||||
$invalidobjname .= ",$node";
|
||||
}
|
||||
if (($node =~ /[A-Z]/) && (((!$::opt_t) && (!$::FILEATTRS{$node}{'objtype'})) || ($::FILEATTRS{$node}{'objtype'} eq "node") || ($::opt_t eq "node"))) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user