Skip to content

Commit f1d6e0d

Browse files
authored
fix: YAML.dump quotes y when dumping (#164)
1 parent 6832b96 commit f1d6e0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/datadog_backup/local_filesystem.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def dump(object)
3434
when :json
3535
JSON.pretty_generate(object.deep_sort(array: disable_array_sort ? false : true))
3636
when :yaml
37-
YAML.dump(object.deep_sort(array: disable_array_sort ? false : true))
37+
YAML.dump(object.deep_sort(array: disable_array_sort ? false : true)).gsub('"y":','y:')
3838
else
3939
raise 'invalid output_format specified or not specified'
4040
end

0 commit comments

Comments
 (0)