From a0dbacabb44350c816e56924ff50fe74ee7da81c Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Fri, 20 Sep 2024 21:36:56 +0900 Subject: [PATCH] Define separator explicitly in set_value call set_value method of Puppet::Util::IniFile uses '' for separator when called without the separator argument[1]. Set the argument explicitly to avoid broken rendering. Note that the argument was added in puppetlabs-inifile 2.0.0 so we don't need to bump the min version. [1] https://github.com/puppetlabs/puppetlabs-inifile/issues/544 Closes-Bug: #2081303 Change-Id: I6112c6d12e860bd4b4030e5f784952a7358f617f (cherry picked from commit 93f15aa78c378dd853e000156ad14dfff15fa394) (cherry picked from commit 5769e2a9bd787966d444b7964921c2e8e373dca2) --- lib/puppet/provider/swift_storage_policy/ruby.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/provider/swift_storage_policy/ruby.rb b/lib/puppet/provider/swift_storage_policy/ruby.rb index 2f77d721..65948351 100644 --- a/lib/puppet/provider/swift_storage_policy/ruby.rb +++ b/lib/puppet/provider/swift_storage_policy/ruby.rb @@ -104,7 +104,7 @@ def write_policy end self.class.policy_settings.each do |property_name, setting_name| unless @property_flush[property_name].nil? - config.set_value(policy_title, setting_name, @property_flush[property_name]) + config.set_value(policy_title, setting_name, '=', @property_flush[property_name]) end end config.save