mirror of
https://github.com/ansible-collections/community.docker.git
synced 2025-12-16 03:52:05 +00:00
[PR #563/c0d9ca67 backport][stable-2] Fix CI (#565)
* Restrict to old enough paramiko on RHEL 8 or other systems using Python 3.6. (#563) (cherry picked from commitc0d9ca67c4) * Make sure paramiko is installed on localhost as well. * Revert "Make sure paramiko is installed on localhost as well." This reverts commitf36406c2db. * Fix check. * ... Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
7485ec0f8b
commit
41b1337d8e
@ -54,7 +54,7 @@
|
||||
- 'output.volumes is not defined'
|
||||
- 'output.images is not defined'
|
||||
- 'output.disk_usage is not defined'
|
||||
when: output is succeeded or 'Install paramiko package to enable' in output.msg
|
||||
when: output is succeeded or 'Install paramiko package to enable' not in output.msg
|
||||
# For whatever reason, even though paramiko is installed, *sometimes* this error
|
||||
# shows up. I have no idea why it sometimes works and sometimes not...
|
||||
|
||||
@ -75,7 +75,11 @@
|
||||
- 'output.volumes is not defined'
|
||||
- 'output.images is not defined'
|
||||
- 'output.disk_usage is not defined'
|
||||
when: docker_py_version is version('4.4.0', '>=')
|
||||
when: docker_py_version is version('4.4.0', '>=') and (output is succeeded or 'Install paramiko package to enable' not in output.msg)
|
||||
# For whatever reason, even though paramiko is installed, *sometimes* this error
|
||||
# shows up. I have no idea why it sometimes works and sometimes not...
|
||||
# (Also note that due to the way Docker SDK for Python has been written, SSH by
|
||||
# shell only works if paramiko is around...)
|
||||
|
||||
- name: Make sure we got information
|
||||
assert:
|
||||
|
||||
@ -8,6 +8,7 @@ cryptography >= 1.3.0, < 3.4 ; python_version < '3.6' # cryptography 3.4 drops s
|
||||
urllib3 < 1.24 ; python_version < '2.7' # urllib3 1.24 and later require python 2.7 or later
|
||||
wheel < 0.30.0 ; python_version < '2.7' # wheel 0.30.0 and later require python 2.7 or later
|
||||
paramiko < 2.4.0 ; python_version < '2.7' # paramiko 2.4.0 drops support for python 2.6
|
||||
paramiko < 3.0.0 ; python_version < '3.7' # paramiko 3.0.0 forces installation of a too new cryptography
|
||||
requests < 2.20.0 ; python_version < '2.7' # requests 2.20.0 drops support for python 2.6
|
||||
requests < 2.28 ; python_version < '3.7' # requests 2.28.0 drops support for python < 3.7
|
||||
virtualenv < 16.0.0 ; python_version < '2.7' # virtualenv 16.0.0 and later require python 2.7 or later
|
||||
|
||||
Loading…
Reference in New Issue
Block a user