1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-16 22:50:10 +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
No known key found for this signature in database
GPG Key ID: F4D2A4195D4E4064

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