lib/onering/plugins/reporter.rb in onering-client-0.3.1 vs lib/onering/plugins/reporter.rb in onering-client-0.3.2
- old
+ new
@@ -196,10 +196,10 @@
end
# this is kinda ugly
# because we don't know which property might have an @-prefix, progressively
# search through all of them. first non-null match wins
- parts = field.split('.')
+ parts = field.to_s.split('.')
# create an array with every component of the path prefixed with the @-symbol, then with
# the path as is.
#
# e.g.: onering report get metrics.disk.block