Bug #5674
resource auto-search/auto-loading doesn't work in ruby dsl
| Status: | Accepted | Start date: | 12/25/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | language | |||
| Target version: | 2.7.x | |||
| Affected Puppet version: | 2.6.4 | Branch: | ||
| Keywords: | ||||
| Votes: | 7 |
Description
It just doesn’t work.
.pp:
node 'default' {
testo::seconddef { 'secdef_rsrc': }
}
**notice: Scope(Testo::Seconddef[secdef_rsrc]): Define: second**
while with .rb:
node 'default' do
create_resource 'testo::seconddef', 'secdef_rsrc'
end
**Cannot find definition Testo::Seconddef on node xxx**
History
Updated by James Turnbull over 1 year ago
- Category set to language
- Status changed from Unreviewed to Needs Decision
- Assignee set to Nigel Kersten
This should work right Nigel?
Updated by Nigel Kersten about 1 year ago
- Status changed from Needs Decision to Accepted
- Assignee deleted (
Nigel Kersten) - Target version set to 2.7.x
Updated by Egon Kastelijn 9 months ago
Can someone please assign this bug to a developer again?
kind regards,
Egon
Updated by James Turnbull 9 months ago
Egon – it’s not assigned to anyone because it’s not currently being worked on. We’ve accepted the bug but it won’t be assigned until someone in development is available to work on the issue.
Updated by Matthew Leather 6 months ago
A workaround that seems to work for me (2.6.1) is adding this in the DSL before create_resource()
scope.find_definition('testo::seconddef')