fix for when only one is returned

This commit is contained in:
Dan Peterson 2010-11-19 16:19:06 -04:00
parent da094139d3
commit 19d1177333
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ module Fog
def all
check_href! :message => "the Internet Services for the Vdc you want to enumerate"
if data = connection.get_internet_services(href).body[:InternetService].find_all {|i| i[:IsBackupService] == "false" }
if data = [connection.get_internet_services(href).body[:InternetService]].flatten.find_all {|i| i[:IsBackupService] == "false" }
load(data)
end
end