Skip to content
Snippets Groups Projects
Commit fc83654b authored by sveseli's avatar sveseli
Browse files

merged from 0.13

parents f64f4bd8 5473afba
No related branches found
No related tags found
No related merge requests found
...@@ -90,7 +90,7 @@ class SftpUtility: ...@@ -90,7 +90,7 @@ class SftpUtility:
if not self.sftpClient: if not self.sftpClient:
self.sftpClient = self.getSftpClient(self.host, self.port, self.username, self.password, self.privateKey) self.sftpClient = self.getSftpClient(self.host, self.port, self.username, self.password, self.privateKey)
try: try:
md5Sum = self.sftpClient.execute('md5sum %s' % filePath)[0].split()[0] md5Sum = self.sftpClient.execute('md5sum "%s"' % filePath)[0].split()[0]
fileInfo['md5Sum'] = md5Sum fileInfo['md5Sum'] = md5Sum
except Exception, ex: except Exception, ex:
self.getLogger().error('Could not get md5sum for file %s: %s' % (filePath,ex)) self.getLogger().error('Could not get md5sum for file %s: %s' % (filePath,ex))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment