defect 4580: a minor change for the syntax

This commit is contained in:
daniceexi 2015-03-02 21:30:51 -05:00
parent 30f6a66814
commit 32753450ae

View File

@ -841,7 +841,10 @@ sub mkinstall
}
# parse Mac table to get one mac address in case there are multiples.
$mac = xCAT::Utils->parseMacTabEntry($macent->{mac},$node);
my $mac;
if ($macent->{mac}) {
$mac = xCAT::Utils->parseMacTabEntry($macent->{mac},$node);
}
my $net_params = xCAT::NetworkUtils->gen_net_boot_params($ent->{installnic},$ent->{primarynic},$mac);
if (exists($net_params->{nicname})) {