Jira (PUP-10270) Allow testing for data types with defined()
Title: Message Title Jorie Tappa updated an issue Puppet / PUP-10270 Allow testing for data types with defined() Change By: Jorie Tappa Sub-team: Language Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.345289.1580986728000.20423.1581363000640%40Atlassian.JIRA.
Jira (PUP-10270) Allow testing for data types with defined()
Title: Message Title Jorie Tappa updated an issue Puppet / PUP-10270 Allow testing for data types with defined() Change By: Jorie Tappa Team: Froyo Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.345289.1580986728000.20419.1581363000503%40Atlassian.JIRA.
Jira (PUP-10270) Allow testing for data types with defined()
Title: Message Title Henrik Lindberg commented on PUP-10270 Re: Allow testing for data types with defined() For anyone implementing this: it is important to know that when asking for a data type, all types that are not explicitly defined are by design a Resource datatype (yes, for historical reasons it needs to do this). Since the ask for a data type must use a string the logic ends up doing this: # Find a resource type, definition or class definition Puppet::Pops::Evaluator::Runtime3ResourceSupport.find_resource_type_or_class(scope, val) I think it may need to do that first, and if not found, then try the 4.x loaders to load the data type - i.e. something like this: loader = Puppet.lookup(:loaders).private_environment_loader() type = loader.load(:type, type_name) But, in Puppet 6 it may work to only use the 4.x loaders. Add Comment
Jira (PUP-10270) Allow testing for data types with defined()
Title: Message Title Matthias Baur updated an issue Puppet / PUP-10270 Allow testing for data types with defined() Change By: Matthias Baur Summary: Allow testing of for data types with defined() Add Comment This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93) -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/puppet-bugs/JIRA.345289.1580986728000.16491.1580986800248%40Atlassian.JIRA.