Commit 9dc48214 authored by Roque's avatar Roque

[1.1.9] Increase version - explicitily close internal files after write

parent 515ababa
......@@ -6,7 +6,7 @@ DOWN_URL="$DEFAULT_DATA_LAKE_URL"
ING_POLICY="portal_ingestion_policies/default_ebulk"
ING_URL="$DEFAULT_DATA_LAKE_URL$ING_POLICY"
EBULK_VERSION="1.1.8"
EBULK_VERSION="1.1.9"
EMBULK_VERSION="0.9.7"
EBULK_DATA_PATH=~/.ebulk
EBULK_DATASET_FILE_NAME="/.ebulk_dataset"
......
......@@ -203,7 +203,9 @@ class DatasetUtils
else
local_files.each do |key, array|
record = [key, array["status"], array["size"].to_s, array["hash"], array["modification_date"], array["large_hash"]].join(RECORD_SEPARATOR)
File.open(@temp_report_file, 'ab') { |file| file.puts(record) }
file = File.open(@temp_report_file, "ab")
file.puts(record)
file.close()
end
end
FileUtils.cp_r(@temp_report_file, @task_report_file, :remove_destination => true)
......@@ -224,7 +226,9 @@ class DatasetUtils
File.delete(@resume_operation_file)
end
record = new_reference ? [operation, reference, new_reference].join(RECORD_SEPARATOR) : [operation, reference].join(RECORD_SEPARATOR)
File.open(@resume_operation_file, 'w') { |file| file.puts(record) }
file = File.open(@resume_operation_file, "w")
file.puts(record)
file.close()
end
def getConfiguration(action, tool_dir)
......
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