Skip to content

Commit

Permalink
fix ERB.new to remove deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Aug 8, 2024
1 parent ad5540a commit e404f0a
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 e404f0a

Please sign in to comment.