1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #2411 from mmatuska/vsphere-list-volumes

Fix exception if listing raw vSphere volumes (thinProvisioned method missing)
This commit is contained in:
Paul Thornthwaite 2014-02-27 23:41:12 +00:00
commit 5f552e67d3

View file

@ -31,7 +31,7 @@ module Fog
get_vm_ref(vm_id).disks.map do |vol|
{
:id => vol.backing.uuid,
:thin => vol.backing.thinProvisioned,
:thin => (vol.backing.thinProvisioned rescue(nil)),
:mode => vol.backing.diskMode,
:filename => vol.backing.fileName,
:datastore => (vol.backing.datastore.name rescue(nil)),