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 method `stringify_keys' for #<RbVmomi::VIM:0x000000049c3278> #26

Open
nedoshel opened this issue Sep 7, 2012 · 5 comments
Open

Comments

@nedoshel
Copy link

nedoshel commented Sep 7, 2012

sometime in same code i get this and sometime not)
controller:

vms = dc.vmFolder.childEntity[0].children

or

datastore.vm.each do |vm|

like this.
what can it be?

@jcustenborder
Copy link

You mention controller. Are you using this in rails? I'm having a similar issue. It looks like active record has been injected into the call stack. Did you find a fix for your issues?

undefined method `stringify_keys' for #<RbVmomi::VIM:0x007feda7674020>
/Users/jeremy/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.8/lib/active_record/attribute_assignment.rb:69:in `assign_attributes'
/Users/jeremy/.rvm/gems/ruby-1.9.3-p286/gems/activerecord-3.2.8/lib/active_record/base.rb:498:in `initialize'
/Users/jeremy/.rvm/gems/ruby-1.9.3-p286/gems/rbvmomi-1.6.0/lib/rbvmomi/deserialization.rb:185:in `new'
/Users/jeremy/.rvm/gems/ruby-1.9.3-p286/gems/rbvmomi-1.6.0/lib/rbvmomi/deserialization.rb:185:in `deserialize'
/Users/jeremy/.rvm/gems/ruby-1.9.3-p286/gems/rbvmomi-1.6.0/lib/rbvmomi/connection.rb:68:in `block in parse_response'
/Users/jeremy/.rvm/gems/ruby-1.9.3-p286/gems/rbvmomi-1.6.0/lib/rbvmomi/connection.rb:68:in `map'
/Users/jeremy/.rvm/gems/ruby-1.9.3-p286/gems/rbvmomi-1.6.0/lib/rbvmomi/connection.rb:68:in `parse_response'
/Users/jeremy/.rvm/gems/ruby-1.9.3-p286/gems/rbvmomi-1.6.0/lib/rbvmomi/connection.rb:90:in `call'
/Users/jeremy/.rvm/gems/ruby-1.9.3-p286/gems/rbvmomi-1.6.0/lib/rbvmomi/basic_types.rb:203:in `_call'
/Users/jeremy/.rvm/gems/ruby-1.9.3-p286/gems/rbvmomi-1.6.0/lib/rbvmomi/basic_types.rb:74:in `block (2 levels) in init'
/Users/jeremy/.rvm/gems/ruby-1.9.3-p286/gems/rbvmomi-1.6.0/lib/rbvmomi/vim/Folder.rb:7:in `find'
/Users/jeremy/.rvm/gems/ruby-1.9.3-p286/gems/rbvmomi-1.6.0/lib/rbvmomi/vim/Folder.rb:83:in `traverse'
/Users/jeremy/.rvm/gems/ruby-1.9.3-p286/gems/rbvmomi-1.6.0/lib/rbvmomi/vim/ServiceInstance.rb:8:in `find_datacenter'

@endzyme
Copy link

endzyme commented Nov 30, 2012

If you're using rails look at http://fog.io

@jcustenborder
Copy link

Doesn't fog use this library under the hood?

On Fri, Nov 30, 2012 at 2:20 PM, Nick Huanca [email protected]:

If you're using rails look at http://fog.io


Reply to this email directly or view it on GitHubhttps://github.com//issues/26#issuecomment-10906362.

@endzyme
Copy link

endzyme commented Dec 1, 2012

Yes but it makes it much easier to work with depending on what you're doing
On Nov 30, 2012 4:15 PM, "Jeremy Custenborder" [email protected]
wrote:

Doesn't fog use this library under the hood?

On Fri, Nov 30, 2012 at 2:20 PM, Nick Huanca [email protected]:

If you're using rails look at http://fog.io


Reply to this email directly or view it on GitHub<
https://github.com/rlane/rbvmomi/issues/26#issuecomment-10906362>.


Reply to this email directly or view it on GitHubhttps://github.com//issues/26#issuecomment-10907977.

@rlane
Copy link
Owner

rlane commented Dec 1, 2012

FYI, vmware/rbvmomi is the official repo now - I don't work for VMware anymore. I have no idea how ActiveRecord got itself called here.

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

4 participants