Skip to content

Commit

Permalink
Initialize parser version variable
Browse files Browse the repository at this point in the history
  • Loading branch information
soline-b committed Sep 25, 2024
1 parent ce706a2 commit cf46f85
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 cf46f85

Please sign in to comment.