lib/onering/plugins/reporter.rb in onering-client-0.0.66 vs lib/onering/plugins/reporter.rb in onering-client-0.0.67

- old
+ new

@@ -86,15 +86,15 @@ instance_eval(&block) end end def property(name, value=nil) - @_report[:properties].set(name.gsub('.','_'), value) if value + @_report[:properties].set(name.to_s.gsub('.','_'), value) if value end def stat(name, value=nil) @_report[:properties][:metrics] ||= {} - @_report[:properties][:metrics].set(name.gsub('.','_'), value) if value + @_report[:properties][:metrics].set(name.to_s.gsub('.','_'), value) if value end def report() @id = (@options[:id] || Onering::Util.fact('hardwareid', nil))