mirror of
https://github.com/jimeh/redistat.git
synced 2026-02-19 13:26:39 +00:00
ensure Redistat::Label.name is always a string
This commit is contained in:
@@ -6,7 +6,7 @@ module Redistat
|
|||||||
attr_reader :hash
|
attr_reader :hash
|
||||||
|
|
||||||
def initialize(str)
|
def initialize(str)
|
||||||
@name = str
|
@name = str.to_s
|
||||||
@hash = Digest::SHA1.hexdigest(@name)
|
@hash = Digest::SHA1.hexdigest(@name)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user