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

Minor bug fixes

This commit is contained in:
Tino Vazquez 2014-01-22 19:27:25 +01:00
parent abf70de94c
commit 6caca0008a
2 changed files with 8 additions and 9 deletions

View File

@ -452,7 +452,7 @@ $(document).ready(function(){
$('a.zone-choice').live("click", function(){
$.ajax({
url: 'config',
type: "POST",
type: "HEAD",
headers: {
"ZONE_ENDPOINT": this.id,
"ZONE_NAME" : this.className.split(" ")[1]

View File

@ -224,26 +224,25 @@ before do
unless request.path=='/login' || request.path=='/' || request.path=='/vnc'
halt 401 unless authorized?
# Extra check: Retrieve list
if env['HTTP_ZONE_ENDPOINT']
session[:active_zone_endpoint] = env['HTTP_ZONE_ENDPOINT']
end
if env['HTTP_ZONE_ENDPOINT'] and env['HTTP_ZONE_ENDPOINT'].to_i == -1
if env['HTTP_ZONE_ENDPOINT'] && env['HTTP_ZONE_ENDPOINT'].to_i == -1
session.delete(:active_zone_endpoint)
end
if env['HTTP_ZONE_NAME']
session[:zone_name] = env['HTTP_ZONE_NAME']
end
client=$cloud_auth.client(session[:user],
session[:active_zone_endpoint])
end
@SunstoneServer = SunstoneServer.new(
client,
$conf,
logger)
client=$cloud_auth.client(session[:user],
session[:active_zone_endpoint])
@SunstoneServer = SunstoneServer.new(client,$conf,logger)
end
after do