chopm mac if entered in editor
[pxelator] / lib / PXElator / client.pm
index 7d49920..daab34a 100644 (file)
@@ -202,6 +202,7 @@ sub rebuild_mac_links {
                my $mac = ip_path $ip, 'mac';
                if ( -e $mac ) {
                        $mac = read_file $mac;
+                       chomp $mac;
                        save_ip_mac( $ip, $mac );
                        warn "## $ip $mac\n";
                }