Bug #2613

Autorequire fails when a directory's path has a trailing /

Added by Mark Painter over 2 years ago. Updated over 2 years ago.

Status:Closed Start date:09/09/2009
Priority:Normal Due date:
Assignee:Markus Roberts % Done:

0%

Category:fileserving
Target version:0.25.1
Affected Puppet version:0.24.8 Branch:
Keywords:
Votes: 0

Description

When creating a directory, if the path attribute is specified with a trailing /, Files placed in that directory do not auto-require the directory.

autorequire.pp - minimal manifest to reproduce (174 Bytes) Mark Painter, 09/09/2009 12:38 am


Related issues

related to Puppet - Bug #1042: Trailing or extra slashes are not removed from file names... Accepted

History

Updated by Mark Painter over 2 years ago

Debug out put from a local run:

debug: Creating default schedules debug: Finishing transaction 70210443267580 with 0 changes debug: //File[a]: File does not exist debug: //File[a]: Changing ensure debug: //File[a]: 1 change(s) err: //File[a]/ensure: change from absent to file failed: Could not set file on ensure: No such file or directory – /tmp/dir/a at /tmp/foo.pp:4 debug: //File[dir]: File does not exist debug: //File[dir]: Changing ensure debug: //File[dir]: 1 change(s) notice: //File[dir]/ensure: create

Updated by James Turnbull over 2 years ago

  • Category set to fileserving
  • Status changed from Unreviewed to Needs More Information

I think this is fixed in 0.25.0 from memory – Luke?

Updated by Markus Roberts over 2 years ago

  • Assignee set to Markus Roberts
  • Target version set to 0.25.1

I believe so. I’ll test & confirm.

Updated by Markus Roberts over 2 years ago

  • Status changed from Needs More Information to Closed

This works correctly in 0.25.

Also available in: Atom PDF