Quick fix to import to prevent services from being imported without a port.

unstable
David Maloney 2011-11-11 17:19:26 -08:00
parent 6ae8bbb6ce
commit e3f6756e18
1 changed files with 5 additions and 0 deletions

View File

@ -370,6 +370,11 @@ class DBManager
host = report_host(hopts) host = report_host(hopts)
end end
if opts[:port].to_i.zero?
dlog("Skipping port zero for service '%s' on host '%s'" % [opts[:name],host.address])
return nil
end
ret = {} ret = {}
=begin =begin
host = get_host(:workspace => wspace, :address => addr) host = get_host(:workspace => wspace, :address => addr)