Jira (PUP-5629) Functions in Puppet language are double parsed / produce already declared errors?
Title: Message Title R.I.Pienaar commented on PUP-5629 Re: Functions in Puppet language are double parsed / produce already declared errors? Do you have an example of what you're trying to do? This doesn't seem surprising to me at all so curious to see what you were doing? Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5629) Functions in Puppet language are double parsed / produce already declared errors?
Title: Message Title R.I.Pienaar commented on PUP-5629 Re: Functions in Puppet language are double parsed / produce already declared errors? Fair, you'd probably rather want to use notice() there anyway - still, it seems perfectly normal that you can only make resources there by the same rules as always basically, seems odd to want to make resources in a function anyway unless its some special generator that would probably have unique argument values or so Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5629) Functions in Puppet language are double parsed / produce already declared errors?
Title: Message Title Jo Rhett assigned an issue to Henrik Lindberg Puppet / PUP-5629 Functions in Puppet language are double parsed / produce already declared errors? Change By: Jo Rhett Assignee: Henrik Lindberg Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5629) Functions in Puppet language are double parsed / produce already declared errors?
Title: Message Title Jo Rhett created an issue Puppet / PUP-5629 Functions in Puppet language are double parsed / produce already declared errors? Issue Type: Bug Affects Versions: PUP 4.3.1 Assignee: Unassigned Created: 2015/12/21 12:34 AM Priority: Normal Reporter: Jo Rhett If you place a normal resource within a Puppet function you get an alert like this: Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Notify[I am unique] is already declared in file :3; cannot redeclare at line 3 at line 3:3 on node client.example.com Warning: Not using cache on failed catalog Error: Could not
Jira (PUP-5629) Functions in Puppet language are double parsed / produce already declared errors?
Title: Message Title Jo Rhett commented on PUP-5629 Re: Functions in Puppet language are double parsed / produce already declared errors? Yeah I'm probably not doing a good job of phrasing it. Tired jo 1. Just slammed into this 2. I suspect many others will 3. If using resources within a function is reasonable, then I think having a unique instance variable would be awful handy 4. If resources are bad juju, docs... 5. ...and perhaps code validation ("don't do that here!") might improve the user experience. Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send email to puppet-bugs@googlegroups.com. Visit this group at https://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-5629) Functions in Puppet language are double parsed / produce already declared errors?
Title: Message Title Jo Rhett commented on PUP-5629 Re: Functions in Puppet language are double parsed / produce already declared errors? Well I slammed into it trying to toss some debugging into a function super simple test case. function mymodule::make_boolean( Variant[Undef,String,Numeric,Boolean] $inputvalue ) { notify { $inputvalue: } case $inputvalue { Did a little testing, and realized that the only way I knew to make the resource unique would be to call rand() or something Add Comment This message was sent by Atlassian JIRA (v6.4.12#64027-sha1:e3691cc) -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-bugs+unsubscr...@googlegroups.com. To post to this group, send