lib/onering/plugins/reporter.rb in onering-client-0.0.65 vs lib/onering/plugins/reporter.rb in onering-client-0.0.66
- old
+ new
@@ -86,17 +86,15 @@
instance_eval(&block)
end
end
def property(name, value=nil)
- name.gsub!('.','_')
- @_report[:properties].set(name, value) if value
+ @_report[:properties].set(name.gsub('.','_'), value) if value
end
def stat(name, value=nil)
- name.gsub!('.','_')
@_report[:properties][:metrics] ||= {}
- @_report[:properties][:metrics].set(name, value) if value
+ @_report[:properties][:metrics].set(name.gsub('.','_'), value) if value
end
def report()
@id = (@options[:id] || Onering::Util.fact('hardwareid', nil))