lib/new_relic/agent/configuration/manager.rb in newrelic_rpm-3.16.2.321 vs lib/new_relic/agent/configuration/manager.rb in newrelic_rpm-3.16.3.323
- old
+ new
@@ -243,10 +243,10 @@
label_pairs = break_label_string_into_pairs(labels)
make_label_hash(label_pairs, labels)
end
def break_label_string_into_pairs(labels)
- stripped_labels = labels.strip
+ stripped_labels = labels.strip.sub(/^;*/,'').sub(/;*$/,'')
stripped_labels.split(';').map do |pair|
pair.split(':').map(&:strip)
end
end