mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Try disconnecting while we wait
This commit is contained in:
parent
6703d19bce
commit
661c216fa4
1 changed files with 1 additions and 1 deletions
|
@ -72,12 +72,12 @@ def install(app_id, enable=True, tries=3, wait=10):
|
|||
"Error installing app({}): {}".format(app_id, exc)
|
||||
)
|
||||
elif num_tries < tries:
|
||||
time.sleep(wait)
|
||||
num_tries += 1
|
||||
else:
|
||||
raise CommandExecutionError(
|
||||
"Error installing app({}): {}".format(app_id, exc)
|
||||
)
|
||||
time.sleep(wait)
|
||||
|
||||
|
||||
def installed(app_id):
|
||||
|
|
Loading…
Add table
Reference in a new issue