Issue #5221 has been updated by Tim Edwards.

The following line /usr/lib/ruby/site_ruby/1.8/puppet/file_serving/fileset.rb 
in should be changed to chomp any extra /'s:
    raise ArgumentError.new("Fileset paths must be fully qualified") unless 
File.expand_path(path) == path

In Unix both /etc/ and /etc are equally valid so the code should reflect this 
to avoid needless confusion like I had.
----------------------------------------
Bug #5221: "Fileset paths must be fully qualified" error when paths have a 
trailing /
https://projects.puppetlabs.com/issues/5221

Author: Tim Edwards
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


I had the following in one of my manifests:
    tidy { yumconf:
    path => "/etc/",
    recurse => true,
    matches => [ "yum.conf.rpmnew", "yum.conf.rpmsave" ]
    }
    
This produced the error:
    err: /Stage[main]/Yum::Config/Tidy[yumconf]: Failed to generate additional 
resources using 'generate': Fileset paths must be fully qualified

The workaround was to change it to:
    path => "/etc"




-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to