1
1
mirror of https://github.com/adammck/terraform-inventory synced 2024-11-22 20:01:58 +01:00

Initializes all_group to be an empty array (#49)

* Initialize all_group with empty slice
This commit is contained in:
Sameer Chauhan 2017-01-18 21:24:46 -05:00 committed by Adam Mckaig
parent 1de0b94c9f
commit be8d8d7bdb

2
cli.go

@ -27,7 +27,7 @@ func appendUniq(strs []string, item string) []string {
func gatherResources(s *state) map[string]interface{} {
groups := make(map[string]interface{}, 0)
all_group := allGroup{Vars: make(map[string]interface{})}
all_group := allGroup{Vars: make(map[string]interface{}), Hosts: make([]string, 0)}
groups["all"] = &all_group
for _, res := range s.resources() {