[PUP-7062] Exception thrown when implementing create in both child and parent provider Created: 2017/01/04 Updated: 2017/01/05 Resolved: 2017/01/05
|Component/s:||Types and Providers|
|Affects Version/s:||PUP 3.8.7|
|Reporter:||Nicolai Marck Ødum||Assignee:||Unassigned|
|Remaining Estimate:||Not Specified|
|Time Spent:||Not Specified|
|Original Estimate:||Not Specified|
|QA Risk Assessment:||Needs Assessment|
Given this pseudo code
When I call it
I see the following in the log
Info: Applying configuration version '1483531010'
|Comment by Moses Mendoza [ 2017/01/04 ]|
Hi Nicolai Marck Ødum - thanks for filing.
In the definition of myOtherProvider, I believe you'll want to change super.create to just super. I.e.,
super is a special keyword in ruby, and when invoked will call the current method name on the parent class - in this case, the create method of the parent class. It's not an object and doesn't have attributes on it's own, so it has no create method defined, itself.
|Comment by Nicolai Marck Ødum [ 2017/01/05 ]|
Solution suggested by Moses Mendoza worked - it was a error in my code and not puppet