mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-30 19:02:27 +00:00 
			
		
		
		
	fix issue "xCAT Object Name Format" error when trying to name osimages starting with "rhels7.3" #2157
This commit is contained in:
		| @@ -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"))) {  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user