Mentions légales du service

Skip to content
Snippets Groups Projects
Commit da21c2bd authored by Jonathan Pastor's avatar Jonathan Pastor
Browse files

using empty character for indicating that generator expects no value

parent 04e12282
No related branches found
No related tags found
1 merge request!6WIP: Features/oar gpus
...@@ -959,7 +959,7 @@ def do_diff(options, generated_hierarchy, refrepo_properties) ...@@ -959,7 +959,7 @@ def do_diff(options, generated_hierarchy, refrepo_properties)
{:cpu => "cpu", :core => "core", :cpuset => "cpuset", :gpu => "gpu", :gpudevice => "gpudevice"}.each do |key, value| {:cpu => "cpu", :core => "core", :cpuset => "cpuset", :gpu => "gpu", :gpudevice => "gpudevice"}.each do |key, value|
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 == "" if expected_value == "" or expected_value.nil?
expected_value = "ø" expected_value = "ø"
end end
fix_cmd = <<-TXT fix_cmd = <<-TXT
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment