Fix problem where ESXi clone from a non-xCAT template may fail in the face of xCAT mac address management
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.7@12165 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
99af6b0de6
commit
45f6284891
@ -2390,6 +2390,7 @@ sub clone_task_callback {
|
||||
foreach $ndev (@{$nodeviews->[0]->config->hardware->device}) {
|
||||
unless ($ndev->{macAddress}) { next; } #not an ndev
|
||||
$ndev->{macAddress}=shift @macs;
|
||||
$ndev->{addressType}="manual";
|
||||
push @devstochange, VirtualDeviceConfigSpec->new(
|
||||
device => $ndev,
|
||||
operation => VirtualDeviceConfigSpecOperation->new('edit'));
|
||||
|
Loading…
Reference in New Issue
Block a user