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

NoMethodError: undefined method `host' for #<RbVmomi::VIM::Folder:0x7fd648e06958> #29

Open
dikaye opened this issue Dec 5, 2014 · 1 comment

Comments

@dikaye
Copy link

dikaye commented Dec 5, 2014

I use the irb console to test the VMBix, but got the error as below:
irb(main):010:0> data = viserver.collect
I, [2014-12-05T15:56:38.109968 #11468] INFO -- : 172.16.5.209: connected
I, [2014-12-05T15:56:38.110154 #11468] INFO -- : 172.16.5.209: data collection started
NoMethodError: undefined method host' for #<RbVmomi::VIM::Folder:0x7fd648e06958> from ./lib/vimbix/connector.rb:88:incollect'
from ./lib/vimbix/connector.rb:73:in each' from ./lib/vimbix/connector.rb:73:incollect'
from (irb):10
from /usr/lib/ruby/site_ruby/1.8/rubygems/compatibility.rb:21
irb(main):011:0>

How to fix it? thanks.

@iconeb
Copy link
Contributor

iconeb commented Jan 23, 2015

I found such error with nested folders in computeResource structure.
#30 should traverse folders, flatten computeResource list and solve the issue.

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