fix usage of wrong variable
authorAlbert Dengg <albert@fsfe.org>
Wed, 31 Mar 2010 20:33:02 +0000 (22:33 +0200)
committerMichael Vrable <mvrable@cs.ucsd.edu>
Thu, 1 Apr 2010 20:43:35 +0000 (13:43 -0700)
* fix some leftover reference to the wrong variable (self.path instead
  of self.netloc)

python/cumulus/store/sftp.py

index e87c098..4d19c8c 100644 (file)
@@ -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'))