From 32753450ae3c87fe3e2438b68d0e389c68e450da Mon Sep 17 00:00:00 2001 From: daniceexi Date: Mon, 2 Mar 2015 21:30:51 -0500 Subject: [PATCH] defect 4580: a minor change for the syntax --- xCAT-server/lib/xcat/plugins/debian.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/debian.pm b/xCAT-server/lib/xcat/plugins/debian.pm index efeced646..3a8a8fce1 100755 --- a/xCAT-server/lib/xcat/plugins/debian.pm +++ b/xCAT-server/lib/xcat/plugins/debian.pm @@ -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})) {