1
0
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:
Javi Fontan 2014-08-28 15:27:13 +02:00
parent 236a2f1355
commit b8e8bbd086

View File

@ -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