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

[Brightbox] Change logic of fetching zone and flavour_id

This commit is contained in:
Hemant Kumar 2011-10-24 16:11:33 +05:30
parent 74803007ee
commit 3f221ba83b

View file

@ -41,11 +41,19 @@ module Fog
end
def zone_id
attributes[:zone_id] || zone[:id] || zone['id']
if t_zone_id = attributes[:zone_id]
t_zone_id
elsif zone
zone[:id] || zone['id']
end
end
def flavor_id
attributes[:flavor_id] || server_type[:id] || server_type['id']
if t_flavour_id = attributes[:flavor_id]
t_flavour_id
elsif server_type
server_type[:id] || server_type['id']
end
end
def zone_id=(incoming_zone_id)