Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined local variable or method `response' #2

Closed
jkmowery opened this issue Feb 10, 2012 · 2 comments
Closed

undefined local variable or method `response' #2

jkmowery opened this issue Feb 10, 2012 · 2 comments

Comments

@jkmowery
Copy link

nexpose.rb:1841:in initialize': undefined local variable or methodresponse' for Nexpose::SiteDeviceListing:0x007fce3315b9c8 (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
@clee-r7
Copy link
Contributor

clee-r7 commented Feb 10, 2012

This is fixed as of the latest, the gem has just not been updated

site.rb line 624

@clee-r7 clee-r7 closed this as completed Feb 10, 2012
@jkmowery
Copy link
Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants