You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by mi...@apache.org on 2026/07/02 06:30:53 UTC

(libcloud) 01/01: Fix paramiko

This is an automated email from the ASF dual-hosted git repository.

micafer pushed a commit to branch fix_paramiko
in repository https://gitbox.apache.org/repos/asf/libcloud.git

commit 67fead3be64c1d7a943a9bf41ad3c8168e299512
Author: Miguel Caballer <mi...@upv.es>
AuthorDate: Thu Jul 2 08:30:34 2026 +0200

    Fix paramiko
---
 libcloud/compute/ssh.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libcloud/compute/ssh.py b/libcloud/compute/ssh.py
index 7a1ec1214..aab2886bf 100644
--- a/libcloud/compute/ssh.py
+++ b/libcloud/compute/ssh.py
@@ -668,7 +668,9 @@ class ParamikoSSHClient(BaseSSHClient):
 
         if paramiko_version < (4, 0, 0):
             # DSSKey removed in paramiko 4.0.0
-            key_types.insert(1, (paramiko.DSSKey, "DSA"))
+            dss_key_cls = getattr(paramiko, "DSSKey", None)
+            if dss_key_cls:
+                key_types.insert(1, (dss_key_cls, "DSA"))
         if paramiko_version >= (2, 2, 0):
             # Ed25519 is only supported in paramiko >= 2.2.0
             key_types.append((paramiko.ed25519key.Ed25519Key, "Ed25519"))