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:
parent
57775a968a
commit
352bf19f92
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user