Issue #5368 has been reported by Jordan Sissel.
----------------------------------------
Bug #5368: Using a parameterized class that doesn't exist results in a
confusing error.
https://projects.puppetlabs.com/issues/5368
Author: Jordan Sissel
Status: Unreviewed
Priority: Normal
Assignee:
Category:
Target version:
Affected Puppet version: 2.6.2
Keywords: parameterized class classes confusing error message
Branch:
Error message: Puppet::Parser::AST::Resource failed with error ArgumentError:
Invalid resource type class at ...
I expected that 'include foo' and 'class { "foo": ...; }' should result in the
same error message if class 'foo' does not exist.
For example:
<pre>
% puppet apply -e 'include notbar'
Could not find class notbar at line 1 on node snack.home
% puppet apply -e 'class { "notbar": ; }'
Puppet::Parser::AST::Resource failed with error ArgumentError: Invalid resource
type class at line 1 on node snack.home
</pre>
Confirmed this problem is in both 2.6.2 and 2.6.3
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.