Issue #1585 has been updated by masterzen.

Status changed from Accepted to Needs design decision
Assigned to changed from masterzen to luke

Hi,

I posted to the devel list the 5 patches, which are also available here:
http://github.com/masterzen/puppet/tree/feature%2Fexpression
This is against 0.24.x

Luke, the ball is in your camp, please review and accept if that meets your 
selection criterions.

----------------------------------------
Feature #1585: Allow complex 'if' test boolean expressions.
http://projects.reductivelabs.com/issues/show/1585

Author: masterzen
Status: Needs design decision
Priority: Normal
Assigned to: luke
Category: newfeature
Target version: 0.24.6
Complexity: Easy
Affected version: 0.24.5
Keywords: parser expression if boolean


Hi,

I just finished a parser modification that allows arbitrary complex 'if' test 
expressions.
The currently supported operators are:
* Comparison
** ==
** !=
** < <=
** > >=
* Boolean operators:
** not (!)
** or
** and

Example usage:

if ($ram < 2048) and (($nb_cpu >= 2) or ($distribution == 'lenny') and ! $var) {
 ...
}



Please review and merge if it meets the necessary requirements.

The patch consists in 4 commits based on 0.24.x which are hosted in the 
feature/ifexpr branch in the masterzen/puppet github repository, or directly 
from:
http://github.com/masterzen/puppet/commits/feature/ifexpr/



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