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:
commit
3ab7c2b0a3
2 changed files with 10 additions and 8 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue