From e43ac920f266c0ed42714f00d8a79fcb8a5c5825 Mon Sep 17 00:00:00 2001 From: Kamran Farhadi Date: Mon, 29 Apr 2024 22:53:26 -0400 Subject: [PATCH] fix: YAML.dump quotes y when dumping --- lib/datadog_backup/local_filesystem.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/datadog_backup/local_filesystem.rb b/lib/datadog_backup/local_filesystem.rb index ecc604f..e0dcfea 100644 --- a/lib/datadog_backup/local_filesystem.rb +++ b/lib/datadog_backup/local_filesystem.rb @@ -34,7 +34,7 @@ def dump(object) when :json JSON.pretty_generate(object.deep_sort(array: disable_array_sort ? false : true)) when :yaml - YAML.dump(object.deep_sort(array: disable_array_sort ? false : true)) + YAML.dump(object.deep_sort(array: disable_array_sort ? false : true)).gsub('"y": ','y: ') else raise 'invalid output_format specified or not specified' end