Skip to content

Commit

Permalink
Merge pull request #200 from mila-iqia/update-scraping
Browse files Browse the repository at this point in the history
Initialize parser version variable
  • Loading branch information
soline-b authored Sep 25, 2024
2 parents ce706a2 + cf46f85 commit 2f39bff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions slurm_state/mongo_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ def main_read_report_and_update_collection(
# If a data file has been set as input, the Slurm version should
# be stored in it, else the parser will try to get the version
# through an SSH command
# Initialize the parser version
parser_version = None
if from_file:
with open(report_file_path, "r") as infile:
version = json.load(infile)["meta"]["Slurm"]["version"]
Expand Down

0 comments on commit 2f39bff

Please sign in to comment.