Paramiko might not come standard everywhere (#54486)

* Paramiko might not come standard everywhere

There is a platform where paramiko isn't shipped but a special version
of paramiko just for our use is shipped.  This code imports paramiko
from that location.
This commit is contained in:
Toshio Kuratomi 2019-04-02 10:06:51 -07:00 committed by GitHub
parent 48c7501768
commit b03c16fa8b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 28 additions and 9 deletions

View file

@ -216,11 +216,14 @@ try:
except ImportError:
HAS_B64 = False
HAS_PARAMIKO = True
try:
import paramiko
HAS_PARAMIKO = True
except ImportError:
HAS_PARAMIKO = False
try:
import ansible_paramiko as paramiko
except ImportError:
HAS_PARAMIKO = False
class PublicKeyManager(object):