vmware-archive / rbvmomi

Ruby interface to the VMware vSphere API.
MIT License
302 stars 174 forks source link

Cannot connect to PBM after v1.10.0 #113

Closed agrare closed 7 years ago

agrare commented 7 years ago

Running a simple script to connect to PBM fails after v1.10.0 with the following error: lib/rbvmomi/connection.rb:262:inmethod_missing': undefined method PbmServiceInstance' for RbVmomi::VIM:Class (NoMethodError)

Using this test script reproduction steps are:

git bisect start v1.11.2 v1.9.0
git bisect run bundle exec ruby ./pbm.rb  --host=$HOST --user=$USER --password=$PASSWORD

Bisect points to 34a754ceb85db8b6f43e1af6f6771bd97f4fe037 as the first bad commit

It looks like VIM::PbmServiceInstance was dropped from the vmodl.db while upgrading to 6.5

jrgarcia commented 7 years ago

I apologize that it took me so long to get to this! Can you test from the fix-113 branch and see if that fixes the issue for you?

agrare commented 7 years ago

Hey, no problem at all. Yes that fixes the issue for me.

agrare commented 7 years ago

Thanks @jrgarcia !

jrgarcia commented 7 years ago

I just released v1.11.3 with this fix so you can update your Gem rather than pulling in a branch from Git.