1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #2004 from rvrignaud/flavors

Fix Fog::Compute::Google::Flavor all method
This commit is contained in:
Nat Welch 2013-08-02 09:39:13 -07:00
commit fb1d8b777c

View file

@ -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