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:
parent
b2ba7cd5fe
commit
6dfb611413
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user