Skip to content

Commit

Permalink
fix syntax here
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Jul 2, 2024
1 parent 1f24ad2 commit 3559f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ood_core/job/adapters/slurm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def get_jobs(id: "", owner: nil, attrs: nil)
# jobs << job
#
# assuming keys and values are same length! if not we have an error!
line = line.force_encoding('UTF-8', invalid: :replace, undef: :replace, )
line = line.force_encoding('UTF-8', invalid: :replace, undef: :replace)
values = line.chomp(RECORD_SEPARATOR).strip.split(UNIT_SEPARATOR)
jobs << Hash[fields.keys.zip(values)] unless values.empty?
end
Expand Down

0 comments on commit 3559f78

Please sign in to comment.