1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

Feature #2686: Select current zone in Sunstone

This commit is contained in:
Tino Vazquez 2014-01-31 18:46:57 +01:00
parent 57775a968a
commit 352bf19f92

View File

@ -208,6 +208,10 @@ 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}
return [204, ""]
end
end