Commit 0b6d8cdd authored by DELABROYE Dimitri's avatar DELABROYE Dimitri

[lib] update hashvalidator

parent 5d61c747
...@@ -349,10 +349,10 @@ def diff_properties(type, properties_oar, properties_ref) ...@@ -349,10 +349,10 @@ def diff_properties(type, properties_oar, properties_ref)
properties_ref.delete('state') properties_ref.delete('state')
elsif type == 'default' && properties_ref.size == 1 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. # 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 end
return HashDiff.diff(properties_oar, properties_ref) return Hashdiff.diff(properties_oar, properties_ref)
end end
# These keys will not be created neither compared with the -d option # These keys will not be created neither compared with the -d option
......
...@@ -193,7 +193,7 @@ def cluster_homogeneity(refapi_hash, options = {:verbose => false}) ...@@ -193,7 +193,7 @@ def cluster_homogeneity(refapi_hash, options = {:verbose => false})
next next
end end
diffs = HashDiff.diff(refnode, node) diffs = Hashdiff.diff(refnode, node)
# Hack HashDiff output for arrays: # Hack HashDiff output for arrays:
#[["-", "pdu[1]", {"uid"=>"graphene-pdu9", "port"=>24}], #[["-", "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