mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Add the uncommitted property to the vsphere datastore object
This commit is contained in:
parent
e0835fdd08
commit
d96d602a2d
2 changed files with 10 additions and 8 deletions
|
@ -12,6 +12,7 @@ module Fog
|
|||
attribute :freespace
|
||||
attribute :accessible # reachable by at least one hypervisor
|
||||
attribute :capacity
|
||||
attribute :uncommitted
|
||||
|
||||
def to_s
|
||||
name
|
||||
|
|
|
@ -19,13 +19,14 @@ module Fog
|
|||
|
||||
def datastore_attributes datastore, datacenter
|
||||
{
|
||||
:id => managed_obj_id(datastore),
|
||||
:name => datastore.name,
|
||||
:accessible => datastore.summary.accessible,
|
||||
:type => datastore.summary.type,
|
||||
:freespace => datastore.summary.freeSpace,
|
||||
:capacity => datastore.summary.capacity,
|
||||
:datacenter => datacenter,
|
||||
:id => managed_obj_id(datastore),
|
||||
:name => datastore.name,
|
||||
:accessible => datastore.summary.accessible,
|
||||
:type => datastore.summary.type,
|
||||
:freespace => datastore.summary.freeSpace,
|
||||
:capacity => datastore.summary.capacity,
|
||||
:uncommitted => datastore.summary.uncommitted,
|
||||
:datacenter => datacenter,
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -37,4 +38,4 @@ module Fog
|
|||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue