summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorlutter <lutter@980ebf18-57e1-0310-9a29-db15c13687c0>2006-11-10 20:06:49 +0000
committerlutter <lutter@980ebf18-57e1-0310-9a29-db15c13687c0>2006-11-10 20:06:49 +0000
commitf9d62136a76c9a8e6885261e6930414e8ae1f496 (patch)
tree675c138223122bc5d5ff1a338db7e840f23bdbe7 /lib/puppet
parentb44ebe21d550663af82c44b090b29f8cc902ed36 (diff)
downloadpuppet-f9d62136a76c9a8e6885261e6930414e8ae1f496.tar.gz
puppet-f9d62136a76c9a8e6885261e6930414e8ae1f496.tar.xz
puppet-f9d62136a76c9a8e6885261e6930414e8ae1f496.zip
Fix silly regexp mistake where lines with values containing '=' were parsed improperly.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1854 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/inifile.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/inifile.rb b/lib/puppet/inifile.rb
index bb8137d10..2990f3711 100644
--- a/lib/puppet/inifile.rb
+++ b/lib/puppet/inifile.rb
@@ -117,7 +117,7 @@ module Puppet
else
section.add_line(l)
end
- elsif l =~ /^\s*(\S+)\s*\=(.+)$/
+ elsif l =~ /^\s*([^\s=]+)\s*\=(.+)$/
# We allow space around the keys, but not the values
# For the values, we don't know if space is significant
if section.nil?