mirror of
https://github.com/hashicorp/vagrant.git
synced 2026-05-28 04:36:05 -04:00
Return false if RHS does not implement hash_code
This commit is contained in:
parent
45b9c48f03
commit
9da90f0b21
1 changed files with 1 additions and 0 deletions
|
|
@ -48,6 +48,7 @@ module VagrantPlugins
|
|||
# @param [Vertex]
|
||||
# @return [Boolean]
|
||||
def ==(v)
|
||||
return false if !v.respond_to?(:hash_code)
|
||||
v.hash_code == hash_code
|
||||
end
|
||||
alias_method :eql?, :==
|
||||
|
|
|
|||
Loading…
Reference in a new issue