rapid7/nexpose-client — Issue #2: undefined local variable or method `response'
Author: jkmowery
Created: 2012-02-10 23:25:44+00:00
State: open

nexpose.rb:1841:in `initialize': undefined local variable or method `response' for (NameError)

Needs updating to:

BEFORE::

if(r.success)
respsonse.elements.each('SiteDeviceListingResponse/SiteDevices/device') do |d|
@devices.push(Device.new(d.attributes['id'],@site_id,d.attributes["address"],d.attributes["riskfactor"],d.attributes['riskscore']))
end
end

AFTER::

if(r.success)
r.res.elements.each('SiteDeviceListingResponse/SiteDevices/device') do |d|
@devices.push(Device.new(d.attributes['id'],@site_id,d.attributes["address"],d.attributes["riskfactor"],d.attributes['riskscore']))
end
end