summaryrefslogtreecommitdiffstats
path: root/state.rb
diff options
context:
space:
mode:
authorCasey Dahlin <cdahlin@redhat.com>2008-10-09 14:22:49 -0400
committerCasey Dahlin <cdahlin@redhat.com>2008-10-09 14:22:49 -0400
commit50415bdba2b379a9b320f05456cb0b4c9c363cef (patch)
treeef1143a46523bfb4afcd21ba5ff32ca2d82ca093 /state.rb
parent3c1888a4ca9fc64063553ccb5fbf0951a8ae8c32 (diff)
downloadupstate-50415bdba2b379a9b320f05456cb0b4c9c363cef.tar.gz
upstate-50415bdba2b379a9b320f05456cb0b4c9c363cef.tar.xz
upstate-50415bdba2b379a9b320f05456cb0b4c9c363cef.zip
Better event matching
Event matching should now be deterministic
Diffstat (limited to 'state.rb')
-rw-r--r--state.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/state.rb b/state.rb
index 5b757b6..b1f7de0 100644
--- a/state.rb
+++ b/state.rb
@@ -479,7 +479,7 @@ class Event
# Two Events are equal if their params are equal and their name is the same
def ==(other)
other.is_a? Event and \
- @params == other.params and \
+ @params.sort.hash == other.params.sort.hash and \
@name == other.name
end