Fix the case of hosts with no services
git-svn-id: file:///home/svn/framework3/trunk@3915 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
c2ef34a420
commit
fa5503d0ea
|
@ -377,6 +377,7 @@ module Db
|
|||
prot = port.attributes['protocol']
|
||||
pnum = port.attributes['portid']
|
||||
stat = port.elements['state'].attributes['state']
|
||||
next if not port.elements['service']
|
||||
name = port.elements['service'].attributes['name']
|
||||
prod = port.elements['service'].attributes['product']
|
||||
xtra = port.elements['service'].attributes['extrainfo']
|
||||
|
|
Loading…
Reference in New Issue