mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
removing unwanted commits from this branch
Conflicts: - salt/states/pip_state.py - tests/support/helpers.py
This commit is contained in:
parent
e0b0ba8c71
commit
6c452b3f4c
2 changed files with 3 additions and 6 deletions
|
@ -66,8 +66,8 @@ if HAS_PIP is True:
|
|||
ver2='18.1'):
|
||||
from pip._internal.exceptions import InstallationError # pylint: disable=E0611,E0401
|
||||
elif salt.utils.versions.compare(ver1=pip.__version__,
|
||||
oper='>=',
|
||||
ver2='1.0'):
|
||||
oper='>=',
|
||||
ver2='1.0'):
|
||||
from pip.exceptions import InstallationError # pylint: disable=E0610,E0401
|
||||
else:
|
||||
InstallationError = ValueError
|
||||
|
|
|
@ -209,10 +209,7 @@ def flaky(caller=None, condition=True, attempts=4):
|
|||
return caller(cls)
|
||||
except Exception as exc:
|
||||
if attempt >= attempts -1:
|
||||
if six.PY2:
|
||||
raise
|
||||
else:
|
||||
raise exc
|
||||
raise exc
|
||||
backoff_time = attempt ** 2
|
||||
log.info(
|
||||
'Found Exception. Waiting %s seconds to retry.',
|
||||
|
|
Loading…
Add table
Reference in a new issue