Skip to content

Commit

Permalink
fix ERB.new to remove deprecation warnings (#849)
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom authored Aug 26, 2024
1 parent 47c259a commit 8d959b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ood_core/job/adapters/kubernetes/batch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def generate_id_yml(script)
node_selector = native_data[:node_selector].nil? ? {} : native_data[:node_selector]
gpu_type = native_data[:gpu_type].nil? ? "nvidia.com/gpu" : native_data[:gpu_type]

template = ERB.new(File.read(resource_file), nil, '-')
template = ERB.new(File.read(resource_file), trim_mode: '-')

[template.result(binding), id]
end
Expand Down

0 comments on commit 8d959b8

Please sign in to comment.