mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-25 20:01:25 -07:00
Do not look for a paramiko compat package anymore (#55106)
This commit is contained in:
parent
a290cb4a35
commit
04e5c550a8
2 changed files with 4 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue