-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Puppet::Util::Inifile: set_value does not honor the default key_val_separator #544
Comments
kajinamit
added a commit
to kajinamit/puppetlabs-inifile
that referenced
this issue
Sep 20, 2024
... 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: puppetlabs#544
5 tasks
kajinamit
added a commit
to kajinamit/puppetlabs-inifile
that referenced
this issue
Sep 20, 2024
... 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: puppetlabs#544
openstack-mirroring
pushed a commit
to openstack/puppet-swift
that referenced
this issue
Sep 23, 2024
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] puppetlabs/puppetlabs-inifile#544 Closes-Bug: #2081303 Change-Id: I6112c6d12e860bd4b4030e5f784952a7358f617f
openstack-mirroring
pushed a commit
to openstack/openstack
that referenced
this issue
Sep 23, 2024
* Update puppet-swift from branch 'master' to 93f15aa78c378dd853e000156ad14dfff15fa394 - 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] puppetlabs/puppetlabs-inifile#544 Closes-Bug: #2081303 Change-Id: I6112c6d12e860bd4b4030e5f784952a7358f617f
openstack-mirroring
pushed a commit
to openstack/puppet-swift
that referenced
this issue
Sep 24, 2024
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] puppetlabs/puppetlabs-inifile#544 Closes-Bug: #2081303 Change-Id: I6112c6d12e860bd4b4030e5f784952a7358f617f (cherry picked from commit 93f15aa)
openstack-mirroring
pushed a commit
to openstack/puppet-swift
that referenced
this issue
Sep 24, 2024
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] puppetlabs/puppetlabs-inifile#544 Closes-Bug: #2081303 Change-Id: I6112c6d12e860bd4b4030e5f784952a7358f617f (cherry picked from commit 93f15aa) (cherry picked from commit 5769e2a)
openstack-mirroring
pushed a commit
to openstack/puppet-swift
that referenced
this issue
Sep 25, 2024
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] puppetlabs/puppetlabs-inifile#544 Closes-Bug: #2081303 Change-Id: I6112c6d12e860bd4b4030e5f784952a7358f617f (cherry picked from commit 93f15aa) (cherry picked from commit 5769e2a) (cherry picked from commit a0dbaca)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the Bug
In Puppet OpenStack project we use the
Puppet::Util::IniFile
utility class to manipulate ini settings.We recently discovered that its
set_value
method usesnil
(which is translated to''
) as the default separator unless separator is explicitly passed.This is inconsistent with the other logic (eg loading options from config file) and is confusing.
Expected Behavior
The set_value method honors the key_value_separator unless separator is explicitly defined
Steps to Reproduce
Steps to reproduce the behavior:
Current implementation results in dumping
into the
test.conf
file.Environment
Additional Context
N/A
The text was updated successfully, but these errors were encountered: