1
0
mirror of https://github.com/taigrr/yq synced 2025-01-18 04:53:17 -08:00

Bugfix: Read yaml array

Parsing an array into MapSlice results in `[{nil, nil}]`.
Parse into `[]map[interface{}]interface{}` allows for the processing of
top level arrays in the document.

Resolves: #23
This commit is contained in:
kenjones
2017-09-23 13:53:04 -04:00
parent b9ac6a3d9d
commit 51fa1a87b7
3 changed files with 145 additions and 0 deletions

9
examples/array.yaml Normal file
View File

@@ -0,0 +1,9 @@
---
- become: true
gather_facts: false
hosts: lalaland
name: "Apply smth"
roles:
- lala
- land
serial: 1