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:
parent
4417dbe2a0
commit
80d0ab9360
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue