Bug #588
parser freaks out when it encounters a directory
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | High | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | - | |||
| Target version: | 0.25.0 | |||
| Affected Puppet version: | 0.25.4 | Branch: | ||
| Keywords: | ||||
| Votes: | 0 |
Description
When importing, for example “modules/*”, if one of the files in the modules directory actually happens to be a directory, the parser croaks. Here is a patch to fix that but I imagine there might be a better way, or perhaps have that auto expand as well.
--- parser.rb.orig 2007-04-10 14:40:13.000000000 -0700
+++ parser.rb 2007-04-10 14:37:10.000000000 -0700
@@ -147,6 +147,9 @@
file = File.join(dir, file)
end
begin
+ if [[FileTest]].directory?(file)
+ next
+ end
parser.file = file
rescue Puppet::ImportError
Puppet.warning(
History
Updated by Luke Kanies almost 5 years ago
- Status changed from 1 to Closed
- 7 set to fixed
This was fixed in r2404.