1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

Getting zone 0 instead of all the pool

This commit is contained in:
Tino Vazquez 2014-02-03 14:35:48 +01:00
parent 352bf19f92
commit 7a7c03ee95

View File

@ -208,9 +208,9 @@ helpers do
env['rack.session.options'][:expire_after] = 30*60*60*24-1
end
zpool = ZonePoolJSON.new(client)
zpool.info
zpool.each{|z| session[:zone_name] = z.name if z.id == 0}
zone = OpenNebula::Zone.new_with_id(0, client)
zone.info
session[:zone_name] = zone.name
return [204, ""]
end