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

This commit is contained in:
Jaime Melis committed 2011-02-23 18:00:58 +01:00
1 parent 951e910c12
commit e9bd6d50e6
1 file changed
+9 -1
+9 -1
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