Fix various issues with the mac address fixup in clonevm
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9448 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
ce96e2ff10
commit
589cdec1a4
@ -2169,9 +2169,9 @@ sub clone_task_callback {
|
||||
$vpdtab->setAttribs({node=>$node},{uuid=>$nodeviews->[0]->config->uuid});
|
||||
my $ndev;
|
||||
my @devstochange;
|
||||
foreach $ndev ($nodeviews->[0]->config->hardware->device) {
|
||||
unless ($ndev->macAddress) { next; } #not an ndev
|
||||
$ndev->macAddress=shift @macs;
|
||||
foreach $ndev (@{$nodeviews->[0]->config->hardware->device}) {
|
||||
unless ($ndev->{macAddress}) { next; } #not an ndev
|
||||
$ndev->{macAddress}=shift @macs;
|
||||
push @devstochange, VirtualDeviceConfigSpec->new(
|
||||
device => $ndev,
|
||||
operation => VirtualDeviceConfigSpecOperation->new('edit'));
|
||||
|
Loading…
Reference in New Issue
Block a user