From 1bd55cba41b0407c50d1a6588d368d343b0d1191 Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 20 Sep 2024 21:14:20 +0900 Subject: [PATCH] Honor default separator in set_config ... to use the consistent separator by default in all functions by default. Users can still override the separator by passing the separator argument when calling the function. Fixes: #544 --- lib/puppet/util/ini_file.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/puppet/util/ini_file.rb b/lib/puppet/util/ini_file.rb index b7529812..dc84c7d2 100644 --- a/lib/puppet/util/ini_file.rb +++ b/lib/puppet/util/ini_file.rb @@ -63,6 +63,7 @@ def set_value(*args) when 3 # Backwards compatible set_value function, See MODULES-5172 (section_name, setting, value) = args + separator = @key_val_separator when 4 (section_name, setting, separator, value) = args end