From 096339dc5b91a7ce2c3e0c16fe07a86b0f5781d3 Mon Sep 17 00:00:00 2001 From: phamt Date: Fri, 13 Aug 2010 23:14:00 +0000 Subject: [PATCH] Changed $propVals to $propVals->{'mac'} because in the if conditional, $propVals can have a value while $propVals->{'mac'} can be null. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7092 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/zvm.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/zvm.pm b/xCAT-server/lib/xcat/plugins/zvm.pm index aacbbc830..d42987da7 100644 --- a/xCAT-server/lib/xcat/plugins/zvm.pm +++ b/xCAT-server/lib/xcat/plugins/zvm.pm @@ -1805,7 +1805,7 @@ sub cloneVM { my $generateNew = 0; # Flag to generate new MACID @propNames = ('mac'); $propVals = xCAT::zvmUtils->getNodeProps( 'mac', $_, @propNames ); - if ( !$propVals ) { + if ( !$propVals->{'mac'} ) { # If no MACID is found, get one $macId = xCAT::zvmUtils->getMacID($tgtHcp); @@ -1970,7 +1970,7 @@ sub cloneVM { my $srcMac; @propNames = ('mac'); $propVals = xCAT::zvmUtils->getNodeProps( 'mac', $sourceNode, @propNames ); - if ($propVals) { + if ($propVals->{'mac'}) { # Get MAC address $srcMac = $propVals->{'mac'};