diff --git a/xCAT-server/lib/xcat/plugins/xcat2nim.pm b/xCAT-server/lib/xcat/plugins/xcat2nim.pm index 8089cb3d0..af6c5e837 100644 --- a/xCAT-server/lib/xcat/plugins/xcat2nim.pm +++ b/xCAT-server/lib/xcat/plugins/xcat2nim.pm @@ -855,9 +855,11 @@ sub mkclientdef if (!$::objhash{$node}{'mac'}) { my $rsp; - $rsp->{data}->[0] = "$::msgstr Missing the MAC for node \'$node\'.\n"; - xCAT::MsgUtils->message("E", $rsp, $::callback); - return 1; + $rsp->{data}->[0] = "$::msgstr Missing the MAC for node \'$node\'.\n"; + xCAT::MsgUtils->message("E", $rsp, $::callback); + return 1; + } else { + $::objhash{$node}{'mac'} =~ s/://g; } $ifattr="-a if1=\'$net_name $shorthost $::objhash{$node}{'mac'} $adaptertype\'";