From 80d0ab936005680f6dc01f6491c6021b351cb036 Mon Sep 17 00:00:00 2001 From: Dan Peterson Date: Fri, 6 May 2011 00:01:30 -0300 Subject: [PATCH] [ecloud|compute] 1.9.2 compat, String#[] doesn't return nil as we expected --- lib/fog/compute/models/ecloud/servers.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/fog/compute/models/ecloud/servers.rb b/lib/fog/compute/models/ecloud/servers.rb index 16f537a58..e1904bbdb 100644 --- a/lib/fog/compute/models/ecloud/servers.rb +++ b/lib/fog/compute/models/ecloud/servers.rb @@ -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