1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-08-24 17:49:28 +03:00

F #3859: Fix previous commit

This commit is contained in:
Daniel Clavijo Coca
2020-05-25 10:33:28 -05:00
parent 4eb0662ea7
commit 5f2612acf4

View File

@ -479,8 +479,7 @@ class OneHostHelper < OpenNebulaHelper::OneHelper
cmd = "onehost offline #{hostname}"
cmd << " && onehost enable #{hostname}"
system("ssh #{hostname} \"#{cmd}\" 2>/dev/null")
system(cmd)
if !$CHILD_STATUS.success?
error_lock.synchronize do
host_errors << hostname