summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Kemp <steve@steve.org.uk>2015-03-04 09:20:07 +0000
committerSteve Kemp <steve@steve.org.uk>2015-03-04 09:20:07 +0000
commitf252c1ab4f2211d9c8ae1c43f4e0f52d01599303 (patch)
treedae61fdcb3e43dcf1cb3a2b407b40f4b7e77aa0e
parentf7742e563b797bf8ef44ffed2e1e44b69a879727 (diff)
Explictly convert the class to a string.
This is required under Ruby 1.8, as I discovered when deploying to offsite3.
-rw-r--r--lib/custodian/alerts/mauve.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/custodian/alerts/mauve.rb b/lib/custodian/alerts/mauve.rb
index 9a5d9ed..79a1416 100644
--- a/lib/custodian/alerts/mauve.rb
+++ b/lib/custodian/alerts/mauve.rb
@@ -224,7 +224,7 @@ module Custodian
# we need to make sure these are distinct too.
#
id_key = test.to_s
- id_key += test.class
+ id_key += test.class.to_s
alert.id = Digest::SHA1.hexdigest(id_key)