1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-20 14:03:36 +03:00

User ruby 1.8 syntax for Dalli option

This commit is contained in:
Daniel Molina 2015-07-13 12:01:16 +02:00
parent 41984ed6d2
commit f11a9a340b

View File

@ -109,9 +109,9 @@ when 'memcache-dalli'
STDERR.puts memcache_server
use Rack::Session::Dalli,
memcache_server: memcache_server,
namespace: $conf[:memcache_namespace],
cache: Dalli::Client.new
:memcache_server => memcache_server,
:namespace => $conf[:memcache_namespace],
:cache => Dalli::Client.new
else
STDERR.puts "Wrong value for :sessions in configuration file"
exit(-1)
@ -643,4 +643,3 @@ post '/:resource/:id/action' do
end
Sinatra::Application.run! if(!defined?(WITH_RACKUP))