Commit 2296ca91 authored by Łukasz Nowak's avatar Łukasz Nowak

Return True on success.

parent f146a207
...@@ -117,8 +117,7 @@ class NetworkcacheClient(object): ...@@ -117,8 +117,7 @@ class NetworkcacheClient(object):
raise UploadError('Failed to upload data to SHADIR Server.' \ raise UploadError('Failed to upload data to SHADIR Server.' \
'URL: %s. Response code: %s. Response data: %s' % \ 'URL: %s. Response code: %s. Response data: %s' % \
(self.shacache_host, result.status, data)) (self.shacache_host, result.status, data))
return True
return json.loads(data)
def download(self, sha512sum): def download(self, sha512sum):
''' Download the file. ''' Download the file.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment