Record the device_id correctly in the nexpose raw import
parent
584e0dbd98
commit
19c18a3e4e
|
@ -384,9 +384,9 @@ module Rex
|
||||||
# This hash defines the matching criteria to overwrite an existing entry
|
# This hash defines the matching criteria to overwrite an existing entry
|
||||||
vkey = { :src => 'nexpose', :nx_vuln_id => @state[:test][:id] }
|
vkey = { :src => 'nexpose', :nx_vuln_id => @state[:test][:id] }
|
||||||
|
|
||||||
if @state[:device_id]
|
if @state[:nx_device_id]
|
||||||
vdet[:nx_device_id] = @state[:device_id]
|
vdet[:nx_device_id] = @state[:nx_device_id]
|
||||||
vkey[:nx_device_id] = @state[:device_id]
|
vkey[:nx_device_id] = @state[:nx_device_id]
|
||||||
end
|
end
|
||||||
|
|
||||||
if @state[:test][:key]
|
if @state[:test][:key]
|
||||||
|
|
Loading…
Reference in New Issue