From a38fa44112502681d1ea0cb0741b6ac0fb5a9ae6 Mon Sep 17 00:00:00 2001 From: Romain Vrignaud Date: Wed, 31 Jul 2013 17:00:10 +0200 Subject: [PATCH] Fix Fog::Compute::Google::Flavor all method * list_machine_types takes one zone as argument --- lib/fog/google/models/compute/flavors.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fog/google/models/compute/flavors.rb b/lib/fog/google/models/compute/flavors.rb index a7fbcbb6c..3ae5ba697 100644 --- a/lib/fog/google/models/compute/flavors.rb +++ b/lib/fog/google/models/compute/flavors.rb @@ -10,7 +10,8 @@ module Fog model Fog::Compute::Google::Flavor def all - data = connection.list_machine_types.body["items"] + zone = service.list_zones.body['items'].first + data = connection.list_machine_types(zone['name']).body["items"] load(data) end