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:
James Lee 2010-02-24 22:57:38 +00:00
parent 27cda778a8
commit ebfaf77374
1 changed files with 3 additions and 0 deletions

View File

@ -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