Skip to content

Commit

Permalink
utils: clean JSON output when running update_fixtures_container_images
Browse files Browse the repository at this point in the history
  • Loading branch information
tiborsimko committed Sep 13, 2023
1 parent fe5996f commit 379284c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions utils/update_fixtures_container_images.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,12 @@ def main(input_path, output_path): # noqa: D301,D412
print(p.stderr.decode())
os.rename(updated_dataset_path + ".NEW", updated_dataset_path)

# clean resulting JSON file
if os.path.exists("../opendata.cern.ch/scripts/clean_json_file.py"):
os.system(
f"../opendata.cern.ch/scripts/clean_json_file.py {updated_dataset_path}"
)

# remove temporary directory
shutil.rmtree(tmp_source_records_dir)

Expand Down

0 comments on commit 379284c

Please sign in to comment.