bug #380: Fixed correct path for read_configuration method

(cherry picked from commit eb3bd9e6df)
This commit is contained in:
Jaime Melis committed 2010-10-28 20:55:12 +02:00
1 parent ce61253492
commit 91ad237cb3
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -49,7 +49,7 @@ class InformationManager < OpenNebulaDriver
@config = read_configuration
@hypervisor = hypervisor
@remote_dir = @config['SCRIPTS_REMOTE_DIR'] || '/tmp/one'
@remote_dir = @config['SCRIPTS_REMOTE_DIR']
# register actions
register_action(:MONITOR, method("action_monitor"))
+1 -1
View File
@@ -183,7 +183,7 @@ private
if ENV['ONE_LOCATION']
one_config=ENV['ONE_LOCATION']+'/var/config'
else
one_config='/var/log/one/config'
one_config='/var/lib/one/config'
end
config=Hash.new
+1 -1
View File
@@ -47,7 +47,7 @@ class SshDriver < VirtualMachineDriver
@config = read_configuration
@hypervisor = hypervisor
@remote_dir = @config['SCRIPTS_REMOTE_DIR'] || '/tmp/one'
@remote_dir = @config['SCRIPTS_REMOTE_DIR']
end
# ------------------------------------------------------------------------ #