diff --git a/lib/galaxy/managers/cloud.py b/lib/galaxy/managers/cloud.py index 648b6b695f54..fd344e00e725 100644 --- a/lib/galaxy/managers/cloud.py +++ b/lib/galaxy/managers/cloud.py @@ -141,6 +141,7 @@ def download(self, trans, history_id, provider, container, obj, credentials): hids.update({staging_file: output['out_data'][0][1].hid}) for d in output['out_data']: datasets.append(d[1].dataset) + staging_file.close() os.remove(staging_file_name) return datasets