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
This commit is contained in:
phamt 2010-08-12 19:55:29 +00:00
parent b1f691433f
commit 878b2bc402

View File

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