Cann't access Datastore
bararchy opened this issue · 1 comments
bararchy commented
I'm using this check:
serviceInstance.find_datacenter('datastore1') #datastore1 is my ESXi data store name
And I receive a nil
in return.
When trying to call
serviceInstance.find_datastore
I get a method not defined.
bararchy commented
Further playing around got me the answer:
dc = serviceInstance.find_datacenter('') # Empty string
datastore = dc.children.first.find_datastore('datastore1')