Mentions légales du service

Skip to content
Snippets Groups Projects
Commit b5d513fb authored by Lucas Nussbaum's avatar Lucas Nussbaum Committed by DELABROYE Dimitri
Browse files

[dev/oar-prop] replace empty symbol by text to avoid problem with UTF8 on gitlab

parent bcd0c573
No related branches found
No related tags found
1 merge request!216Various changes to OAR properties generator (including support for setting gpu_model)
Pipeline #248623 passed
...@@ -1000,7 +1000,7 @@ def do_diff(options, generated_hierarchy, refrepo_properties) ...@@ -1000,7 +1000,7 @@ def do_diff(options, generated_hierarchy, refrepo_properties)
if row[key].to_s != corresponding_resource[0][value].to_s and not (key == :gpu and row[key].nil? and corresponding_resource[0][value] == 0) if row[key].to_s != corresponding_resource[0][value].to_s and not (key == :gpu and row[key].nil? and corresponding_resource[0][value] == 0)
expected_value = row[key] expected_value = row[key]
if expected_value == "" or expected_value.nil? if expected_value == "" or expected_value.nil?
expected_value = "ø" expected_value = "null"
end end
diagnostic_msg = <<-TXT diagnostic_msg = <<-TXT
# Error: Resource #{resc["id"]} (host=#{resc["network_address"]} cpu=#{resc["cpu"]} core=#{resc["core"]} cpuset=#{resc["cpuset"]} gpu=#{resc["gpu"]} gpudevice=#{resc["gpudevice"]}) has a mismatch for ressource #{value.upcase}: OAR API gives #{resc[value]}, generator wants #{expected_value}. # Error: Resource #{resc["id"]} (host=#{resc["network_address"]} cpu=#{resc["cpu"]} core=#{resc["core"]} cpuset=#{resc["cpuset"]} gpu=#{resc["gpu"]} gpudevice=#{resc["gpudevice"]}) has a mismatch for ressource #{value.upcase}: OAR API gives #{resc[value]}, generator wants #{expected_value}.
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment