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

Merge pull request #2402 from mmatuska/vsphere_datastore_uncommitted

Add uncommitted property to the vsphere datastore object
This commit is contained in:
Kevin Menard 2013-11-19 16:44:19 -08:00
commit 3ab7c2b0a3
2 changed files with 10 additions and 8 deletions

View file

@ -12,6 +12,7 @@ module Fog
attribute :freespace attribute :freespace
attribute :accessible # reachable by at least one hypervisor attribute :accessible # reachable by at least one hypervisor
attribute :capacity attribute :capacity
attribute :uncommitted
def to_s def to_s
name name

View file

@ -19,13 +19,14 @@ module Fog
def datastore_attributes datastore, datacenter def datastore_attributes datastore, datacenter
{ {
:id => managed_obj_id(datastore), :id => managed_obj_id(datastore),
:name => datastore.name, :name => datastore.name,
:accessible => datastore.summary.accessible, :accessible => datastore.summary.accessible,
:type => datastore.summary.type, :type => datastore.summary.type,
:freespace => datastore.summary.freeSpace, :freespace => datastore.summary.freeSpace,
:capacity => datastore.summary.capacity, :capacity => datastore.summary.capacity,
:datacenter => datacenter, :uncommitted => datastore.summary.uncommitted,
:datacenter => datacenter,
} }
end end
@ -37,4 +38,4 @@ module Fog
end end
end end
end end
end end