Skip to content
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

Modules 1876 - Setting names containing spaces fail #158

Merged
merged 2 commits into from Apr 1, 2015

Conversation

bmjen
Copy link
Contributor

@bmjen bmjen commented Mar 31, 2015

When settings have a names containing spaces, the module fails to detect the existing setting and causes the creation of a duplicate setting.

e.g.
ini_setting { "passdb backend":
  ensure  => present,
  path    => '/etc/samba/smb.conf',
  section => 'global',
  setting => 'passdb backend',
  value   => 'tdbsam',
}

Results In:
[global]
passdb backend = tdbsam
passdb backend = tdbsam
passdb backend = tdbsam

Closes #155

@@ -262,4 +262,25 @@
subject.get_value("Drive names", "C:").should eq 'Winchester'
end
end
context 'Configuration with spaces in setting names' do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this line needs to be indented two more spaces

tphoney added a commit that referenced this pull request Apr 1, 2015
Modules 1876 - Setting names containing spaces fail
@tphoney tphoney merged commit 5d70baf into puppetlabs:master Apr 1, 2015
@smortex smortex added the bugfix label Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants