-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:
parent
247849065d
commit
ecadae75bf
@ -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)};
|
||||
|
Loading…
Reference in New Issue
Block a user