Issue #2818 has been updated by Brice Figureau.

Status changed from Code Insufficient to Ready for Checkin
Assigned to changed from Brice Figureau to James Turnbull

Hi,

I've finished and rebased the code for Rowlf. It has been approved (about 2 
weeks ago).
Code is still in the tickets/master/2818 branch in my github repository:
http://github.com/masterzen/puppet/tree/tickets/master/2818
----------------------------------------
Feature #2818: case statements dont support undef
http://projects.reductivelabs.com/issues/2818

Author: Dan Bode
Status: Ready for Checkin
Priority: Normal
Assigned to: James Turnbull
Category: language
Target version: Rowlf
Affected version: 0.25.1
Keywords: 
Branch: tickets/master/2818


undef vars can be used in if-else statements

<pre>
$foo1 = undef
if($foo1) {
  $bar1 = "def"
} else {
  $bar1 = "undef"
}
notice($bar1)
</pre>

but not in a conditionals
<pre>
$foo2 = undef
$bar2 = $foo2 ? {
  undef => "not defined",
  default => "defined"
}
warning $bar2
</pre>



-- 
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://reductivelabs.com/redmine/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