From 589cdec1a455aae5f6717326d986aea2f4b13409 Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Sun, 1 May 2011 13:03:54 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/esx.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/esx.pm b/xCAT-server/lib/xcat/plugins/esx.pm index f249b27ef..9dec34889 100644 --- a/xCAT-server/lib/xcat/plugins/esx.pm +++ b/xCAT-server/lib/xcat/plugins/esx.pm @@ -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'));