diff --git a/lib/ood_core/job/adapters/kubernetes/batch.rb b/lib/ood_core/job/adapters/kubernetes/batch.rb index 57375e482..795c5e002 100644 --- a/lib/ood_core/job/adapters/kubernetes/batch.rb +++ b/lib/ood_core/job/adapters/kubernetes/batch.rb @@ -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