# # # patch "fs_sftp.py" # from [c298681baed4855de43c8668b88ce94a8b6cee73] # to [147b1bf3f2e57f059efa49916be813d443b009b7] # ============================================================ --- fs_sftp.py c298681baed4855de43c8668b88ce94a8b6cee73 +++ fs_sftp.py 147b1bf3f2e57f059efa49916be813d443b009b7 @@ -72,11 +72,12 @@ hostkey = get_host_key(hostname, hostkeyfile) key = None - if kwargs.has_key("dsskey"): + print kwargs + if kwargs.has_key("dsskey") and kwargs["dsskey"] is not None: keypath=os.path.expanduser(kwargs["dsskey"]) key = paramiko.DSSKey.from_private_key_file(keypath, password=password) - elif kwargs.has_key("rsakey"): + elif kwargs.has_key("rsakey") and kwargs["rsakey"] is not None: keypath=os.path.expanduser(kwargs["rsakey"]) key = paramiko.RSAKey.from_private_key_file(keypath, password=password)