diff --git a/lib/fog/ecloud/models/compute/ip_addresses.rb b/lib/fog/ecloud/models/compute/ip_addresses.rb index a7168eb8a..b842ed1e1 100644 --- a/lib/fog/ecloud/models/compute/ip_addresses.rb +++ b/lib/fog/ecloud/models/compute/ip_addresses.rb @@ -11,6 +11,7 @@ module Fog def all data = connection.get_ip_addresses(href).body[:IpAddresses][:IpAddress] + data = data.nil? ? [] : data load(data) end diff --git a/lib/fog/ecloud/models/compute/networks.rb b/lib/fog/ecloud/models/compute/networks.rb index 2dd760620..3c2a698b9 100644 --- a/lib/fog/ecloud/models/compute/networks.rb +++ b/lib/fog/ecloud/models/compute/networks.rb @@ -12,6 +12,7 @@ module Fog def all data = connection.get_networks(href).body data = data[:Networks] ? data[:Networks][:Network] : data[:Network] + data = data.nil? ? [] : data load(data) end