Skip to content

Commit

Permalink
Merge pull request fog#2402 from mmatuska/vsphere_datastore_uncommitted
Browse files Browse the repository at this point in the history
Add uncommitted property to the vsphere datastore object
  • Loading branch information
nirvdrum committed Nov 20, 2013
2 parents d783c02 + d96d602 commit 3ab7c2b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions lib/fog/vsphere/models/compute/datastore.rb
Expand Up @@ -12,6 +12,7 @@ class Datastore < Fog::Model
attribute :freespace
attribute :accessible # reachable by at least one hypervisor
attribute :capacity
attribute :uncommitted

def to_s
name
Expand Down
17 changes: 9 additions & 8 deletions lib/fog/vsphere/requests/compute/list_datastores.rb
Expand Up @@ -19,13 +19,14 @@ def raw_datastores(datacenter_name)

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

Expand All @@ -37,4 +38,4 @@ def list_datastores(datacenter_name)
end
end
end
end
end

0 comments on commit 3ab7c2b

Please sign in to comment.