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