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:
parent
74803007ee
commit
3f221ba83b
1 changed files with 10 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue