Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Done
-
PUP 3.7.5
-
None
-
1
-
Language 2015-05-13
-
Bug Fix
Description
According to https://docs.puppetlabs.com/puppet/latest/reference/future_lang_conditional.html#behavior-2 the future parser should always evaluate the default case last; however, that does not seem to be happening. The following code, executed on a VM always returns the default case.
[root@master ~]# facter is_virtual |
true
|
[root@master ~]# cat foo.pp |
case $is_virtual { |
default: { notify { "default case": } } |
true: { notify { "nondefault case": } } |
}
|
[root@master ~]# puppet apply foo.pp |
Notice: Compiled catalog for master.inf.puppetlabs.demo in environment production in 0.51 seconds |
Notice: default case |
Notice: /Stage[main]/Main/Notify[default case]/message: defined 'message' as 'default case' |
Notice: Finished catalog run in 0.28 seconds |
Attachments
Issue Links
- is blocked by
-
PUP-4541 Create acceptance test for handling of default case in case statement in Puppet DSL
-
- Closed
-
- links to