Issue #6793 has been updated by Christian Ruppert.

I think, trailing slashes should just be removed/ignored when parsing it.

Actually any directory path should have a trailing slash to make it easier for 
other, to know whether it's a file or a directory.
For mount, ok.. it's actually ok to not add a trailing slash because mount is 
pretty clear although I think it wouldn't hurt to just ignore/strip it anyway.
----------------------------------------
Bug #6793: mount provider fails when paths have a trailing slash
https://projects.puppetlabs.com/issues/6793#change-76076

Author: John Spray
Status: Accepted
Priority: Normal
Assignee: 
Category: mount
Target version: 2.7.x
Affected Puppet version: 2.6.6
Keywords: 
Branch: 


A resource like
"/mnt/foo" works fine, but "/mnt/foo/" only works on the first mount.  On 
subsequent runs, puppet incorrectly determines the state as unmounted, tries to 
mount it, and fails.

This is because of puppet/provider/mount.rb function "mounted?" which searches 
for resource[:name] in the output of mount.  Mount never prints the trailing 
slash, so puppet things the mount isn't there.

It should either reject as invalid resources with a trailing slash, or make 
sure that they are correctly recognised when mounted.


-- 
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