diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-03-12 03:19:53 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-03-12 03:19:53 +0000 |
| commit | d7a75c5289c257d2b6782976e494efe81f04478b (patch) | |
| tree | 1c7ec7c3d3feca91b3ddc8d304bb355d6ae00a18 /lib | |
| parent | f2c821803c7f6df2394990432c0a549ddb6ca73c (diff) | |
| download | puppet-d7a75c5289c257d2b6782976e494efe81f04478b.tar.gz puppet-d7a75c5289c257d2b6782976e494efe81f04478b.tar.xz puppet-d7a75c5289c257d2b6782976e494efe81f04478b.zip | |
Fixing small bug in symlink recursion
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1015 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/puppet/type/pfile.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/puppet/type/pfile.rb b/lib/puppet/type/pfile.rb index d6f0ef836..69246f8a8 100644 --- a/lib/puppet/type/pfile.rb +++ b/lib/puppet/type/pfile.rb @@ -333,11 +333,10 @@ module Puppet # We specifically look in @parameters here, because 'linkmaker' isn't # a valid attribute for subclasses, so using 'self[:linkmaker]' throws # an error. - if @parameters.include?(:linkmaker) and @parameters[:linkmaker] == true and + if @parameters.include?(:linkmaker) and args.include?(:source) and ! FileTest.directory?(args[:source]) klass = Puppet.type(:symlink) - self.debug "%s is a link" % path # clean up the args a lot for links old = args.dup args = { |
