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

Allow values with spaces to be parsed and set #15

Merged
merged 1 commit into from
Oct 1, 2012

Conversation

reidmv
Copy link
Contributor

@reidmv reidmv commented Sep 29, 2012

Previously, the following stanza would fail as a result of the ini_setting type not being able to parse spaces in setting values. Puppet would add a new line, config_version = /etc/puppetlabs/puppet/config_version.sh, on every run.

ini_setting { 'main_config_version':
  ensure  => present,
  path    => '/etc/puppetlabs/puppet/puppet.conf',
  section => 'main',
  setting => 'config_version',
  value   => '/etc/puppetlabs/puppet/config_version.sh $environment',
}

This commit modifes the SETTING_REGEX to account for spaces in setting values.

Previously, the following stanza would fail as a result of the
ini_setting type not being able to parse spaces in setting values.

  ini_setting { 'main_config_version':
    ensure  => present,
    path    => '/etc/puppetlabs/puppet/puppet.conf',
    section => 'main',
    setting => 'config_version',
    value   => '/etc/puppetlabs/puppet/config_version.sh $environment',
  }

This commit modifes the SETTING_REGEX to account for spaces in setting values.
cprice404 added a commit that referenced this pull request Oct 1, 2012
@cprice404 cprice404 merged commit 6d3e6a1 into puppetlabs:master Oct 1, 2012
@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.

3 participants