ensure Redistat::Label.name is always a string

This commit is contained in:
2010-07-19 12:03:25 +03:00
parent 7704c73b98
commit 8a22b2134b

View File

@@ -6,7 +6,7 @@ module Redistat
attr_reader :hash
def initialize(str)
@name = str
@name = str.to_s
@hash = Digest::SHA1.hexdigest(@name)
end