diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-07-14 21:13:04 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-07-14 21:13:04 +0000 |
| commit | 60ef57815050497110925283299efde2b7aafcd2 (patch) | |
| tree | 0d4369666d8206ba89a45040201c9812e33021ab /lib/puppet/util | |
| parent | 53c2f0a4c93d51eed664761bc652e73ccf078a82 (diff) | |
Fixing the rest of #705, except for the env stuff, which I was not able to reproduce.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2697 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet/util')
| -rw-r--r-- | lib/puppet/util/fileparsing.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/puppet/util/fileparsing.rb b/lib/puppet/util/fileparsing.rb index 545a54071..8e69681cf 100644 --- a/lib/puppet/util/fileparsing.rb +++ b/lib/puppet/util/fileparsing.rb @@ -168,8 +168,12 @@ module Puppet::Util::FileParsing if match = regex.match(line) fields = [] ret = {} - record.fields.zip(match.captures).each do |f, v| - ret[f] = v + record.fields.zip(match.captures).each do |field, value| + if value == record.absent + ret[field] = :absent + else + ret[field] = value + end end else nil |
