lib/framework/formatters/legacy_fact_formatter.rb in facter-4.0.7.pre vs lib/framework/formatters/legacy_fact_formatter.rb in facter-4.0.8.pre

- old
+ new

@@ -82,9 +82,9 @@ pretty_fact_json.gsub(/^},/, '}') end def remove_comma_and_quation(output) @log.debug('Remove unnecessary comma and quotation marks on root facts') - output.split("\n").map! { |line| line.match(/^[\s]+/) ? line : line.gsub(/,$|\"/, '') }.join("\n") + output.split("\n").map! { |line| line =~ /^[\s]+/ ? line : line.gsub(/,$|\"/, '') }.join("\n") end end end