mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 19:32:31 +00:00 
			
		
		
		
	-Correct some mistakes in UUID persistence
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6142 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -216,8 +216,8 @@ sub getNodeUUID { | ||||
|     if ($confdata->{vpd}->{$node}->[0] and $confdata->{vpd}->{$node}->[0]->{uuid}) { | ||||
|         return $confdata->{vpd}->{$node}->[0]->{uuid}; | ||||
|     } | ||||
|     if ($confdata->{mac}->{$node}->[0]) { #a uuidv1 is possible, generate that for absolute uniqueness guarantee | ||||
|         my $mac = ($confdata->{mac}->{$node}->[0]; | ||||
|     if ($confdata->{mac}->{$node}->[0]->{mac}) { #a uuidv1 is possible, generate that for absolute uniqueness guarantee | ||||
|         my $mac = $confdata->{mac}->{$node}->[0]->{mac}; | ||||
|         $mac =~ s/\|.*//; | ||||
|         $mac =~ s/!.*//; | ||||
|         $updatetable->{vpd}->{$node}={uuid=>xCAT::Utils::genUUID(mac=>$mac)}; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user