Bug #438
Misleading error message when defining source for file type 'link'
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | file | |||
| Target version: | 0.22.1 | |||
| Affected Puppet version: | 0.25.4 | Branch: | ||
| Keywords: | ||||
| Votes: | 0 |
Description
If you define a source and a target for a file it doesn’t fail correctly, giving the error: “You cannot specify a target unless ‘ensure’ is set to ‘link’”
Example:
file { "/etc/inetd.conf":
source => "puppet://server/inetd.conf",
ensure => link,
target => "/etc/net/inetd.conf"
}
or
file { "/etc/inetd.conf":
source => "puppet://server/inetd.conf",
ensure => "/etc/net/inetd.conf"
}
History
Updated by Luke Kanies over 5 years ago
- Status changed from 1 to Closed
- 7 set to fixed
Fixed in r2112. Note that I’ve made the conflict explicit, not made the states compatible.