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:
parent
b1f691433f
commit
878b2bc402
@ -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'};
|
||||
|
Loading…
Reference in New Issue
Block a user