Commit fdfe33ca authored by Lucas Carvalho's avatar Lucas Carvalho

we should pass the file content instead of the path to libnetworkcachee

parent c69358f4
......@@ -119,8 +119,14 @@ def upload_network_cached(network_cache, external_url, path, logger):
return False
try:
f = open(path, 'r')
try:
file_content = f.read()
finally:
f.close()
nc = NetworkcacheClient(network_cache)
result = nc.put(path)
result = nc.put(file_content)
if result.status == 200:
_update_network_cached_log(path, external_url)
......
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