1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

bug #630: host monitoring gives an error when the remotes could not be updated

This commit is contained in:
Javi Fontan 2011-06-28 12:01:58 +02:00
parent d1f4966fa3
commit 9e3bfbea6c

View File

@ -62,7 +62,13 @@ class InformationManagerDriver < OpenNebulaDriver
# Use rsync to sync:
# sync_cmd = "rsync -Laz #{REMOTES_LOCATION}
# #{host}:#{@remote_dir}"
LocalCommand.run(sync_cmd, log_method(number))
cmd=LocalCommand.run(sync_cmd, log_method(number))
if cmd.code!=0
send_message('MONITOR', RESULT[:failure], number,
'Could not update remotes')
return
end
end
end
do_action("#{@hypervisor}", number, host, :MONITOR,