vmware-archive/rbvmomi

esxcli option not working

srobroek opened this issue · 1 comments

related issue: #127 as i'm experiencing the same issue.

inspec> @hosts = @view.CreateContainerView({
inspec>     container: @rootFolder,
inspec>     type:      ['HostSystem'],
inspec>     recursive: true
inspec> }).view
=> [HostSystem("host-357"), HostSystem("host-13"), HostSystem("host-12"), HostSystem("host-10")]
inspec> @hosts[0].esxcli.software.vib.list
NoMethodError: undefined method `RetrieveDynamicTypeManager' for #<RbVmomi::VIM::HostSystem:0x00007f75ddde0198>
Did you mean?  RetrieveHardwareUptime
from /root/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/rbvmomi-2.1.0/lib/rbvmomi/vim/HostSystem.rb:13:in `dtm'
inspec> @hosts[0].esxcli.system.version.get
NoMethodError: undefined method `RetrieveDynamicTypeManager' for #<RbVmomi::VIM::HostSystem:0x00007f75ddde0198>
Did you mean?  RetrieveHardwareUptime
from /root/.rbenv/versions/2.6.2/lib/ruby/gems/2.6.0/gems/rbvmomi-2.1.0/lib/rbvmomi/vim/HostSystem.rb:13:in `dtm'
inspec>

Looking at the issue, the entire method RetrieveDynamicTypeManager seems to have gone missing..

I'm seeing this as well. Looks like 2.0.1 works, but 2.1.0 reintroduced the bug.