- How can this code:
- if r =~ /^(0|[oO]ff|[nNfF].*|)$/ then
- Puppet.debug("Mapping '#{ret}' to false.")
- ret << false
- elsif r =~ /^(1|[tTyYjJsSoO].*)$/ then
- Puppet.debug("Mapping '#{ret}' to true.")
- ret << true
- else
- raise Puppet::ParseError, "Cannot cast extlookup result '#{r}' to a boolean value."
- end
- yield this debug output??
- debug: Mapping '' to false.
- debug: Mapping '' to true.
- debug: Mapping '' to false.
- debug: Mapping '' to true.
| Author: madduck | Language: text |
| Description: No description | Timestamp: 2010-03-12 11:24:21 -0500 |
| View raw paste | Reply |
| View raw paste | Reply |
