mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-25 02:50:08 +03:00
bug #380: Fixed correct path for read_configuration method
This commit is contained in:
parent
0b42b5efe8
commit
eb3bd9e6df
@ -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"))
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
||||
# ------------------------------------------------------------------------ #
|
||||
|
Loading…
x
Reference in New Issue
Block a user