mark hosts as alive when adding vulns
git-svn-id: file:///home/svn/framework3/trunk@8628 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
27cda778a8
commit
ebfaf77374
|
@ -606,6 +606,9 @@ class DBManager
|
|||
ret = {}
|
||||
task = queue( Proc.new {
|
||||
host = get_host(:workspace => wspace, :address => addr)
|
||||
host.state = HostState::Alive
|
||||
host.save! if host.changed?
|
||||
|
||||
if data
|
||||
vuln = host.vulns.find_or_initialize_by_name_and_data(name, data, :include => :refs)
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue