Commit b452ab43 authored by Lucas Nussbaum's avatar Lucas Nussbaum

Revert "[lib] update hashvalidator"

This reverts commit 0b6d8cdd.
parent f8256b31
Pipeline #91955 passed with stages
in 1 minute and 37 seconds
......@@ -99,7 +99,7 @@ def get_ref_node_properties_internal(cluster_uid, cluster, node_uid, node)
h['ib'] = ib_map[h['ib_rate']]
puts "#{node_uid}: Warning - no rate info for the ib interface" if h['ib_count'] > 0 && h['ib_rate'] == 0
# OMNIPATH
ni_mountable = node['network_adapters'].select { |na| /^ib[0-9]*(\.[0-9]*)?$/.match(na['device']) && (na['interface'] == 'Omni-Path' and na['enabled'] == true && (na['mounted'] == true || na['mountable'] == true)) }
ni_fastest = ni_mountable.max_by { |na| na['rate'] || 0 }
......@@ -351,10 +351,10 @@ def diff_properties(type, properties_oar, properties_ref)
properties_ref.delete('state')
elsif type == 'default' && properties_ref.size == 1
# For dead nodes, when information is missing from the reference-repo, only enforce the 'state' property and ignore other differences.
return Hashdiff.diff({'state' => properties_oar['state']}, {'state' => properties_ref['state']})
return HashDiff.diff({'state' => properties_oar['state']}, {'state' => properties_ref['state']})
end
return Hashdiff.diff(properties_oar, properties_ref)
return HashDiff.diff(properties_oar, properties_ref)
end
# These keys will not be created neither compared with the -d option
......@@ -552,7 +552,7 @@ def ssh_exec(cmds, options, site_uid)
end
cmds.each { |cmd|
channel.send_data cmd
channel.send_data cmd
}
channel.eof!
}
......@@ -698,7 +698,7 @@ def generate_oar_properties(options)
end
end
# Get the list of property keys from the OAR scheduler (['oar'])
# Get the list of property keys from the OAR scheduler (['oar'])
properties_keys['oar'][site_uid] = get_property_keys(properties['oar'][site_uid])
# Build the list of properties that must be created in the OAR server
......
......@@ -193,7 +193,7 @@ def cluster_homogeneity(refapi_hash, options = {:verbose => false})
next
end
diffs = Hashdiff.diff(refnode, node)
diffs = HashDiff.diff(refnode, node)
# Hack HashDiff output for arrays:
#[["-", "pdu[1]", {"uid"=>"graphene-pdu9", "port"=>24}],
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment