summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-09-20 12:57:57 -0500
committerLuke Kanies <luke@madstop.com>2007-09-20 12:57:57 -0500
commit46d69068fa7b2f3448294c5d3da21c69cef73d2f (patch)
tree8abf532af73d4fd7d68d894db639004e331318bc /lib/puppet/util
parent9fa2628a844c75b8f554f283dfece01667f20594 (diff)
downloadpuppet-46d69068fa7b2f3448294c5d3da21c69cef73d2f.tar.gz
puppet-46d69068fa7b2f3448294c5d3da21c69cef73d2f.tar.xz
puppet-46d69068fa7b2f3448294c5d3da21c69cef73d2f.zip
An intermediate commit so I can start working on a different
branch. The file recursion code actually works for the first time in a painful while, but there are still some quirks and design issues to resolve, particularly around creating implicit resources that then fail (i.e., the behaviour of the create_implicit_resource method in Configuration).
Diffstat (limited to 'lib/puppet/util')
-rw-r--r--lib/puppet/util/config.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/puppet/util/config.rb b/lib/puppet/util/config.rb
index 3988b3fe0..4b6ae9e5b 100644
--- a/lib/puppet/util/config.rb
+++ b/lib/puppet/util/config.rb
@@ -1143,7 +1143,7 @@ Generated on #{Time.now}.
path = self.value
# Skip plain files that don't exist, since we won't be managing them anyway.
- return nil unless self.name.to_s =~ /dir$/ or File.exist?(path)
+ return nil unless self.name.to_s =~ /dir$/ or File.exist?(path) or self.create
obj = Puppet::TransObject.new(path, "file")
# Only create directories, or files that are specifically marked to