Created
July 10, 2015 15:39
-
-
Save neilhwatson/e3ef4e8ce33ce5dcdaad to your computer and use it in GitHub Desktop.
yaml bug?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Why is the number prefix in the class not printed? | |
neil@ettin ~/.cfagent/inputs $ cat yaml.yaml | |
- bundle: efl_test_simple | |
class: 1003_efl_test | |
ifelapsed: 1 | |
parameter: ../1003/15_efl_test_simple.yaml | |
promisee: efl development | |
promiser: Testing main bundle order | |
- bundle: efl_test_simple | |
class: 1003_efl_test | |
ifelapsed: 1 | |
parameter: ../1003/16_efl_test_simple.yaml | |
promisee: efl development | |
promiser: Testing main bundle order | |
neil@ettin ~/.cfagent/inputs $ cat yaml.cf | |
body common control | |
{ | |
bundlesequence => { "test" }; | |
} | |
bundle agent test | |
{ | |
vars: | |
"d" | |
comment => "Parse yaml file", | |
data => readyaml( "${sys.inputdir}/yaml.yaml", "999999" ); | |
"i" | |
comment => "Index data, but unsorted", | |
slist => getindices( "d" ); | |
reports: | |
" | |
class => ${d[${i}][class]} | |
ifelapsed => ${d[${i}][ifelapsed]} | |
promiser => ${d[${i}][promiser]}_${i} | |
promisee => ${d[${i}][promisee]} | |
bundle => ${d[${i}][bundle]} | |
parameter => ${d[${i}][parameter]}"; | |
} | |
neil@ettin ~/.cfagent/inputs $ cf-agent -Kf ./yaml.cf | |
R: | |
class => _efl_test <<<< Where did 1003 go? | |
ifelapsed => 1 | |
promiser => Testing main bundle order_0 | |
promisee => efl development | |
bundle => efl_test_simple | |
parameter => ../1003/15_efl_test_simple.yaml | |
R: | |
class => _efl_test <<<< Where did 1003 go? | |
ifelapsed => 1 | |
promiser => Testing main bundle order_1 | |
promisee => efl development | |
bundle => efl_test_simple | |
parameter => ../1003/16_efl_test_simple.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment