diff --git a/lib/redistat/label.rb b/lib/redistat/label.rb index 5f53dbc..5757463 100644 --- a/lib/redistat/label.rb +++ b/lib/redistat/label.rb @@ -11,8 +11,7 @@ module Redistat end def save - db.set("Redistat:lables:#{@hash}", @name) - @saved = true + @saved = (db.set("Redistat:lables:#{@hash}", @name) == "OK") self end