1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[ecloud|compute] 1.9.2 compat, String#[] doesn't return nil as we expected

This commit is contained in:
Dan Peterson 2011-05-06 00:01:30 -03:00
parent 4417dbe2a0
commit 80d0ab9360

View file

@ -37,7 +37,9 @@ module Fog
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