F #3859: Update onehost forceupdate internals

This commit is contained in:
Ruben S. Montero authored and GitHub committed 2020-05-25 17:40:24 +02:00
commit abe4ab6676
1 file changed
+4 -4
+4 -4
View File
@@ -474,15 +474,15 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
break unless host
cmd = 'cat /tmp/one-monitord-client.pid | xargs kill -HUP'
system("ssh #{host['NAME']} \"#{cmd}\" 2>/dev/null")
hn = host['NAME']
system("onehost offline #{hn} && onehost enable #{hn}")
if !$CHILD_STATUS.success?
error_lock.synchronize do
host_errors << host['NAME']
host_errors << hn
end
else
puts "#{host['NAME']} monitoring forced"
puts "#{hn} monitoring forced"
end
end
end