Issue #4521 has been updated by Jesse Wolfe.

Status changed from Accepted to Available In Testing Branch
Assigned to changed from Paul Berry to Jesse Wolfe
% Done changed from 50 to 100
Branch set to http://github.com/reductivelabs/puppet/tree/next

Available in `next` as 16f701edd89a320ad73b5468d883dfb017fe6e96
----------------------------------------
Bug #4521: Error when a conditional contains only classes, definitions, and 
nodes.
http://projects.puppetlabs.com/issues/4521

Author: Paul Berry
Status: Available In Testing Branch
Priority: Normal
Assigned to: Jesse Wolfe
Category: 
Target version: 
Affected version: 2.6.1rc1
Keywords: 
Branch: http://github.com/reductivelabs/puppet/tree/next


The following manifest:
<pre>
if true {
  class foo {
  }
}
</pre>

Produces this error message:
<pre>
undefined method `safeevaluate' for nil:NilClass at .../init.pp:5 on node ...
</pre>

However, this manifest works fine:
<pre>
if true {
  class foo {
  }
  notify {bar: }
}
</pre>

I don't know whether it should be allowed for a class to appear inside a 
conditional block, but if it is allowed, it should be allowed regardless of 
whether anything else appears inside the same block.

>From reading the code, this looks like this will happen whenever a conditional 
>block contains only classes, definitions, and nodes.

This behavior exists in both 2.6.x and 0.25.x.


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