Feature #442
The 'defined' function should test resources
| Status: | Closed | Start date: | ||
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | % Done: | 0% |
||
| Category: | language | |||
| Target version: | 0.22.1 | |||
| Affected Puppet version: | 0.25.4 | Branch: | ||
| Keywords: | ||||
| Votes: | 0 |
Description
You should be able to test whether a resource is defined using the ‘defined’ method:
if defined(Service[apache]) {...}
History
Updated by Luke Kanies over 5 years ago
- Status changed from 1 to Closed
- 7 set to fixed
Fixed in r2097.