mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-23 17:33:56 +03:00
bug #3153: bug in host_error hook reading config
This commit is contained in:
parent
236a2f1355
commit
b8e8bbd086
@ -107,7 +107,7 @@ host_name = host.name
|
||||
if repeat
|
||||
# Retrieve host monitor interval
|
||||
monitor_interval = nil
|
||||
File.read(CONFIG_FILE).each{|line|
|
||||
File.readlines(CONFIG_FILE).each{|line|
|
||||
monitor_interval = line.split("=").last.to_i if /MONITORING_INTERVAL/=~line
|
||||
}
|
||||
# Sleep through the desired number of monitor interval
|
||||
|
Loading…
Reference in New Issue
Block a user