From 878b2bc4029621757442b432b2c45112ed223f62 Mon Sep 17 00:00:00 2001 From: phamt Date: Thu, 12 Aug 2010 19:55:29 +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@7076 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 a657a7c18..aacbbc830 100644 --- a/xCAT-server/lib/xcat/plugins/zvm.pm +++ b/xCAT-server/lib/xcat/plugins/zvm.pm @@ -1590,7 +1590,7 @@ sub makeVM { my $generateNew = 0; @propNames = ('mac'); $propVals = xCAT::zvmUtils->getNodeProps( 'mac', $node, @propNames ); - if ($propVals) { + if ($propVals->{'mac'}) { # Get MAC suffix (MACID) $macId = $propVals->{'mac'}; @@ -3503,7 +3503,7 @@ sub getMacs { @propNames = ('mac'); $propVals = xCAT::zvmUtils->getNodeProps( 'mac', $node, @propNames ); my $mac; - if ($propVals) { + if ($propVals->{'mac'}) { # Get MAC address $mac = $propVals->{'mac'};