X-Git-Url: http://git.vrable.net/?p=cumulus.git;a=blobdiff_plain;f=python%2Fcumulus%2Fstore%2Fsftp.py;h=4d19c8c9c17c5f1a3c3282d7022ad04ddc0c2920;hp=e87c0983e9ea2ea2574c558a08f733b4dac4e5a2;hb=3fc24f6535cc8ab481ace110cbfb977af12f9640;hpb=6d4cd644e43cd35ae2651aa5f44156da908bbe09 diff --git a/python/cumulus/store/sftp.py b/python/cumulus/store/sftp.py index e87c098..4d19c8c 100644 --- a/python/cumulus/store/sftp.py +++ b/python/cumulus/store/sftp.py @@ -48,16 +48,11 @@ class SFTPStore(Store): does not support password authentication or password protected authentication keys""" def __init__(self, url, **kw): - if self.path.find('@') != -1: + if self.netloc.find('@') != -1: user, self.netloc = self.netloc.split('@') else: user = None -# if self.netloc.find(':') != -1: -# host, self.path = self.netloc.split(':') -# else: -# host, self.path = self.netloc.split('/', 1) - self.config = SSHHostConfig(self.netloc, user) host_keys = paramiko.util.load_host_keys(os.path.expanduser('~/.ssh/known_hosts'))