When I run a puppet apply against this: notice("operatingsystem: $operatingsystem") case $operatingsystem { redhat: { notice("Matched redhat in switch") } default: { notice("Did not match redhat in switch") } }
if ($operatingsystem == "redhat") { notice("Matched redhat in if") } else { notice("Did not match redhat in if") } It works as expected: otice: Scope(Class[main]): operatingsystem: RedHat notice: Scope(Class[main]): Matched redhat in switch notice: Scope(Class[main]): Matched redhat in if But when I have similar code inside my regular manifests, compiled via puppet master... the code seems to be case sensitive and am forced to write this to make it work: if ( $operatingsystem in ["RedHat","OEL","redhat","oel",] ) { ... } My client is 2.7.6 and the master is 2.7.7 Is this know issue? Thanks a lot, Mohamed, -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.