Jira (PUP-2891) creating a resource override for a Class fails (future parser)
Title: Message Title Erik Daln commented on PUP-2891 Re: creating a resource override for a Class fails (future parser) Henrik Lindberg we had one instance of that syntax that I had to change when switching to the future parser. But I can't seem to get it working ATM in small scale tests with the old parser. Not sure why. Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-2891) creating a resource override for a Class fails (future parser)
Title: Message Title Erik Daln commented on PUP-2891 Re: creating a resource override for a Class fails (future parser) arguably it should be allowed to add ordering dependencies this way though. Like require, before etc. As it doesn't change anything inside the class. But not terribly important to support as it works to add them using ordering arrows. Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-2891) creating a resource override for a Class fails (future parser)
Title: Message Title Henrik Lindberg commented on PUP-2891 Re: creating a resource override for a Class fails (future parser) Erik Daln is this a regression? (Have not had time to check). While it can be argued that it should allow this, at this point we want the overrides to be backwards compatible. We are going to return to all catalog related expressions though. If it is a regression we should fix it to reduce breakage. Add Comment This message was sent by Atlassian JIRA (v6.3.7#6337-sha1:2ed701e) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-2891) creating a resource override for a Class fails (future parser)
Title: Message Title Andy Parker commented on an issue Re: creating a resource override for a Class fails (future parser) t.pp class a($b = hi) { notice($b) } class { a: b = hi } #class { a: } #include a Class[a] { b = bye } The above code, when run through the future parser (and all three different ways for instantiating the class shown in the file) produces the message: Error: Evaluation Error: Resource Override can only operate on resources, got: Class[a]-Type at /Users/andy/work/puppet/t.pp:8:1 on node aparker.delivery.puppetlabs.net For reference the error by the current parser is: Error: Parameter 'b' is already set on Class[A] by #Puppet::Resource::Type:0x007fa32c940c88 at /Users/andy/work/puppet/t.pp:5; cannot redefine at 8:/Users/andy/work/puppet/t.pp on node aparker.delivery.puppetlabs.net Add Comment Puppet / PUP-2891 creating a resource override for a Class fails (future parser) {code} Class[a] { x = 'the default' } {code} Results in the error: {code} Error: Evaluation Error: Error while evaluating a Resource Override, undefined method `type_name' for
Jira (PUP-2891) creating a resource override for a Class fails (future parser)
Title: Message Title Andy Parker assigned an issue to Andy Parker Puppet / PUP-2891 creating a resource override for a Class fails (future parser) Change By: Andy Parker Assignee: AndyParker Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-2891) creating a resource override for a Class fails (future parser)
Title: Message Title Henrik Lindberg assigned an issue to Unassigned Puppet / PUP-2891 creating a resource override for a Class fails (future parser) Change By: Henrik Lindberg Assignee: HenrikLindberg Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-2891) creating a resource override for a Class fails (future parser)
Title: Message Title Henrik Lindberg assigned an issue to Henrik Lindberg Puppet / PUP-2891 creating a resource override for a Class fails (future parser) Change By: Henrik Lindberg Assignee: HenrikLindberg Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-2891) creating a resource override for a Class fails (future parser)
Title: Message Title Joshua Partlow assigned an issue to Joshua Partlow Puppet / PUP-2891 creating a resource override for a Class fails (future parser) Change By: Joshua Partlow Assignee: JoshuaPartlow Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-2891) creating a resource override for a Class fails (future parser)
Title: Message Title Joshua Partlow commented on an issue Re: creating a resource override for a Class fails (future parser) Merged to master in 2fd07724 Add Comment Puppet / PUP-2891 creating a resource override for a Class fails (future parser) {code} Class[a] { x = 'the default' } {code} Results in the error: {code} Error: Evaluation Error: Error while evaluating a Resource Override, undefined method `type_name' for Puppet::Pops::Types::PHostClassType:Puppet::Pops::Types::PHostClassType at /Users/henrik/git/puppet/bar.pp:4:1 on node henriks-macbook-pro.local /Users/henrik/git/puppet/lib/... This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-2891) creating a resource override for a Class fails (future parser)
Title: Message Title Andy Parker updated an issue Puppet / PUP-2891 creating a resource override for a Class fails (future parser) Change By: Andy Parker Sprint: Week2014-7- 23 9 to2014- 8 7 - 6 23 Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-2891) creating a resource override for a Class fails (future parser)
Title: Message Title Andy Parker updated an issue Puppet / PUP-2891 creating a resource override for a Class fails (future parser) Change By: Andy Parker Sprint: Week2014-7-23to2014-8-6 Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-2891) creating a resource override for a Class fails (future parser)
Title: Message Title Henrik Lindberg updated an issue Puppet / PUP-2891 creating a resource override for a Class fails (future parser) Change By: Henrik Lindberg Fix Version/s: 3.7.0 Add Comment This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede) -- 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 http://groups.google.com/group/puppet-bugs. For more options, visit https://groups.google.com/d/optout.
Jira (PUP-2891) creating a resource override for a Class fails (future parser)
Title: Message Title Henrik Lindberg created an issue Puppet / PUP-2891 creating a resource override for a Class fails (future parser) Issue Type: Bug Assignee: Unassigned Created: 03/Jul/14 2:54 PM Priority: Normal Reporter: Henrik Lindberg Class[a] { x = 'the default' } Results in the error: Error: Evaluation Error: Error while evaluating a Resource Override, undefined method `type_name' for Puppet::Pops::Types::PHostClassType:Puppet::Pops::Types::PHostClassType at /Users/henrik/git/puppet/bar.pp:4:1 on node henriks-macbook-pro.local /Users/henrik/git/puppet/lib/puppet/pops/evaluator/runtime3_support.rb:331:in `block in create_resource_overrides' The method in question should detect that a PHostClassType is given and use the type_name class. Add Comment
Jira (PUP-2891) creating a resource override for a Class fails (future parser)
Title: Message Title Henrik Lindberg commented on an issue Re: creating a resource override for a Class fails (future parser) Actually, fixing this error only leads to another error: A class parameter can only be overridden in an inheriting class Which is actually not true, that error message should be changed to: Class parameters can not be overridden, only shadowed in an inheriting class While the runtime logic is wrong for the Class case, we may want to define the operation as illegal and validate it instead of catching this as a runtime error. Add Comment Puppet / PUP-2891 creating a resource override for a Class fails (future parser) {code} Class[a] { x = 'the default' } {code} Results in the error: {code} Error: Evaluation Error: Error while evaluating a Resource Override, undefined method `type_name' for Puppet::Pops::Types::PHostClassType:Puppet::Pops::Types::PHostClassType at /Users/henrik/git/puppet/bar.pp:4:1 on node henriks-macbook-pro.local /Users/henrik/git/puppet/lib/... This