lib/fog/compute/models/ecloud/servers.rb in fog-0.7.2 vs lib/fog/compute/models/ecloud/servers.rb in fog-0.8.0
- old
+ new
@@ -35,10 +35,12 @@
end
private
def _resource_entities
- connection.get_vdc(href).body[:ResourceEntities][:ResourceEntity]
+ if Hash === resource_entities = connection.get_vdc(href).body[:ResourceEntities]
+ resource_entities[:ResourceEntity]
+ end
end
def _vapps
resource_entities = _resource_entities
if resource_entities.nil?