-
Notifications
You must be signed in to change notification settings - Fork 103
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
Error When Loading Dynamic Sites #83
Comments
I just pushed a change that I think fixes it (but I haven't released a new gem version, yet). I'm not sure that this will fix the problem if you are using something besides vSphere (vCenter discovery connections), though. I have to do some more testing before pushing a 0.8.5 release. |
Should be fixed in 0.8.5 release. |
I'm still getting an error in my script when calling Site.load with a site id of a dynamic site. It is a dynamic site using the vCenter discovery connection.
|
Hmm, I'll try to look into it some more. I was getting the same error originally, but the changes fixed it for me. Are you on the most recent version of Nexpose? |
I'm on 5.10.14. Not sure if that's latest. |
When a dynamic site has not filtering criteria, the AJAX call not returns an empty criteria array, whereas before it contained a minimal frame. Handle this by defaulting the operator to 'AND', which allows the site to load and to be saved as is.
I was testing with sites that contained filter parameters before and missed the base case. D'oh! |
Working. Thank you. |
If I attempt to Site.load a Dynamic site my script crashes with
C:/Ruby193/lib/ruby/gems/1.9.1/gems/nexpose-0.8.4/lib/nexpose/filter.rb:302:in
initialize': undefined method
upcase' for nil:NilClass (NoMethodError)from C:/Ruby193/lib/ruby/gems/1.9.1/gems/nexpose-0.8.4/lib/nexpose/filte
r.rb:332:in
new' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/nexpose-0.8.4/lib/nexpose/filte r.rb:332:in
parse'from C:/Ruby193/lib/ruby/gems/1.9.1/gems/nexpose-0.8.4/lib/nexpose/site.
rb:323:in
load_dynamic_attributes' from C:/Ruby193/lib/ruby/gems/1.9.1/gems/nexpose-0.8.4/lib/nexpose/site. rb:221:in
load'The text was updated successfully, but these errors were encountered: