1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

feature #595: now remotes copy is retried

This commit is contained in:
Javi Fontan 2011-06-15 19:26:38 +02:00
parent b2ba7cd5fe
commit 6dfb611413

View File

@ -180,14 +180,14 @@ class RemotesCommand < SSHCommand
cmd = self.new(cmd_string, host, logger, stdin)
cmd.run
if cmd.code == MAGIC_RC
cmd.update_remotes(host, remote_dir, logger)
@command = command
cmd.run
end
while cmd.code != 0 and retries != 0
if cmd.code == MAGIC_RC
cmd.update_remotes(host, remote_dir, logger)
@command = command
cmd.run
end
sleep 1
cmd.run
retries = retries - 1