Issue #5226 has been reported by Dan Trainor.

----------------------------------------
Bug #5226: Ambiguous "Cannot find definition Class at..."
https://projects.puppetlabs.com/issues/5226

Author: Dan Trainor
Status: Unreviewed
Priority: Low
Assignee: 
Category: 
Target version: 2.6.x
Affected Puppet version: 2.6.2
Keywords: Cannot find definition Class
Branch: 


Hi -

Given a sniplet of code inside a class that checks for the existence of a class:

<pre>

if (!defined(Class["postfix::smtprelay"])) {
    include "postfix"
}

</pre>

One would see the following in logs:

<pre>
Nov  8 09:41:24 puppet01 puppet-master[19166]: Cannot find definition Class at 
/etc/puppet/manifests/nodes.pp:264 on node 
search01.vmserver08.test.az.domain.local
</pre>

A couple of thoughts come to mind:

1) Should this even be reported?  Is programmatic logic something that should 
always be displayed?  Granted, the class is clearly not found because its not 
defined, but that would still be considered normal behavior.

2) Even if it is to be included, it should be less ambiguous.  Although one can 
easily find and then (correctly) assume what the warning is about given this 
information, it does take time.

Thanks!


-- 
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.

Reply via email to