mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-02 19:32:47 +00:00
Do not look for a paramiko compat package anymore (#55106)
This commit is contained in:
committed by
Sam Doran
parent
a290cb4a35
commit
04e5c550a8
3
changelogs/fragments/paramiko-optional.yaml
Normal file
3
changelogs/fragments/paramiko-optional.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
---
|
||||
minor_changes:
|
||||
- paramiko is now optional. There is no compat package on certain platforms to worry about.
|
||||
@@ -10,10 +10,5 @@ PARAMIKO_IMPORT_ERR = None
|
||||
paramiko = None
|
||||
try:
|
||||
import paramiko
|
||||
except ImportError:
|
||||
try:
|
||||
import ansible_paramiko as paramiko
|
||||
except (ImportError, AttributeError) as err: # paramiko and gssapi are incompatible and raise AttributeError not ImportError
|
||||
PARAMIKO_IMPORT_ERR = err
|
||||
except AttributeError as err: # paramiko and gssapi are incompatible and raise AttributeError not ImportError
|
||||
except (ImportError, AttributeError) as err: # paramiko and gssapi are incompatible and raise AttributeError not ImportError
|
||||
PARAMIKO_IMPORT_ERR = err
|
||||
|
||||
Reference in New Issue
Block a user