Fix report_note to use :data

:note doesn't do what we want.
bug/bundler_fix
William Vu 2015-03-19 21:33:17 -05:00
parent 83ce967d75
commit 38dbd1889e
1 changed files with 3 additions and 3 deletions

View File

@ -224,7 +224,7 @@ class Db
rw.each do |ip|
id = framework.db.get_host(:address => ip).id
framework.db.hosts.update(id, :info => data)
framework.db.report_note(:host => ip, :type => 'host.info', :note => data)
framework.db.report_note(:host => ip, :type => 'host.info', :data => data)
end
end
end
@ -234,7 +234,7 @@ class Db
rw.each do |ip|
id = framework.db.get_host(:address => ip).id
framework.db.hosts.update(id, :name => data)
framework.db.report_note(:host => ip, :type => 'host.name', :note => data)
framework.db.report_note(:host => ip, :type => 'host.name', :data => data)
end
end
end
@ -244,7 +244,7 @@ class Db
rw.each do |ip|
id = framework.db.get_host(:address => ip).id
framework.db.hosts.update(id, :comments => data)
framework.db.report_note(:host => ip, :type => 'host.comments', :note => data)
framework.db.report_note(:host => ip, :type => 'host.comments', :data => data)
end
end
end