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 93f15aa78c)
(cherry picked from commit 5769e2a9bd)
This commit is contained in:
Takashi Kajinami 2024-09-20 21:36:56 +09:00
parent a78079fcf3
commit a0dbacabb4

View File

@ -104,7 +104,7 @@ Puppet::Type.type(:swift_storage_policy).provide(:ruby) do
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