From d96d602a2d2904635e62f84a6d42db6fe14383e8 Mon Sep 17 00:00:00 2001 From: Martin Matuska Date: Tue, 19 Nov 2013 11:07:01 +0100 Subject: [PATCH] Add the uncommitted property to the vsphere datastore object --- lib/fog/vsphere/models/compute/datastore.rb | 1 + .../vsphere/requests/compute/list_datastores.rb | 17 +++++++++-------- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/lib/fog/vsphere/models/compute/datastore.rb b/lib/fog/vsphere/models/compute/datastore.rb index 7c2ecda4c..0735f41aa 100644 --- a/lib/fog/vsphere/models/compute/datastore.rb +++ b/lib/fog/vsphere/models/compute/datastore.rb @@ -12,6 +12,7 @@ module Fog attribute :freespace attribute :accessible # reachable by at least one hypervisor attribute :capacity + attribute :uncommitted def to_s name diff --git a/lib/fog/vsphere/requests/compute/list_datastores.rb b/lib/fog/vsphere/requests/compute/list_datastores.rb index 4ec0d2324..38c9e6364 100644 --- a/lib/fog/vsphere/requests/compute/list_datastores.rb +++ b/lib/fog/vsphere/requests/compute/list_datastores.rb @@ -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 \ No newline at end of file +end