vmware/rbvmomi — pull request #39 by mkuzmin (2014-05-05 18:07:48+00:00)
Title: Fix fer "Permission was denied" issue in datacenter connection

My account doesn't have administrative permissions on vCenter. And because of that ```find_datacenter``` method fails with the next error:
```
C:/Ruby/lib/ruby/gems/2.0.0/gems/rbvmomi-1.8.1/lib/rbvmomi/connection.rb:61:in `parse_response': NoPermission: Permission to perform this operation was denied. (RbVmomi::Fault)
from C:/Ruby/lib/ruby/gems/2.0.0/gems/rbvmomi-1.8.1/lib/rbvmomi/connection.rb:90:in `call'
from C:/Ruby/lib/ruby/gems/2.0.0/gems/rbvmomi-1.8.1/lib/rbvmomi/basic_types.rb:205:in `_call'
from C:/Ruby/lib/ruby/gems/2.0.0/gems/rbvmomi-1.8.1/lib/rbvmomi/basic_types.rb:74:in `block (2
levels) in init'
from C:/Ruby/lib/ruby/gems/2.0.0/gems/rbvmomi-1.8.1/lib/rbvmomi/vim/Folder.rb:7:in `find'
from C:/Ruby/lib/ruby/gems/2.0.0/gems/rbvmomi-1.8.1/lib/rbvmomi/vim/Folder.rb:93:in `traverse'
from C:/Ruby/lib/ruby/gems/2.0.0/gems/rbvmomi-1.8.1/lib/rbvmomi/vim/ServiceInstance.rb:8:in `find_datacenter'
from dc.rb:3:in `

'
```

This pull request updates the method to work with less privileges.