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/trunk@12164 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2012-04-09 14:05:25 +00:00
parent 95ae6e5ae6
commit 65032f72e5

View File

@ -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'));