lib/fog/vcloud_director/models/compute/vapps.rb in fog-maestrodev-1.15.0.20130927082724 vs lib/fog/vcloud_director/models/compute/vapps.rb in fog-maestrodev-1.18.0.20131111203459

- old
+ new

@@ -20,10 +20,10 @@ end def item_list data = service.get_vdc(vdc.id).body return [] if data[:ResourceEntities].empty? - resource_entities = data[:ResourceEntities][:ResourceEntity].is_a?(Hash) ? [ data[:ResourceEntities][:ResourceEntity] ] : data[:ResourceEntities][:ResourceEntity] + resource_entities = data[:ResourceEntities][:ResourceEntity] items = resource_entities.select { |link| link[:type] == "application/vnd.vmware.vcloud.vApp+xml" } items.each{|item| service.add_id_from_href!(item) } items end