1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

Feature #495: Define VAR_LOCATION in SunstoneServer.rb for get_vm_log and get_configuration to work

This commit is contained in:
Jaime Melis 2011-02-23 18:00:58 +01:00
parent 951e910c12
commit e9bd6d50e6

View File

@ -16,6 +16,14 @@
# TBD Change path for intallation tree
ONE_LOCATION = ENV["ONE_LOCATION"]
if !ONE_LOCATION
VAR_LOCATION = "/var/lib/one"
else
VAR_LOCATION = ONE_LOCATION+"/var"
end
#require 'OpenNebulaJSON'
require 'models/OpenNebulaJSON'
include OpenNebulaJSON
@ -154,7 +162,7 @@ class SunstoneServer
if user_id != "0"
return [401, ""]
end
one_config = VAR_LOCATION + "/config"
config = Hash.new