mirror of
https://github.com/adammck/terraform-inventory
synced 2024-11-23 04:22:08 +01:00
Initializes all_group to be an empty array (#49)
* Initialize all_group with empty slice
This commit is contained in:
parent
1de0b94c9f
commit
be8d8d7bdb
2
cli.go
2
cli.go
@ -27,7 +27,7 @@ func appendUniq(strs []string, item string) []string {
|
|||||||
|
|
||||||
func gatherResources(s *state) map[string]interface{} {
|
func gatherResources(s *state) map[string]interface{} {
|
||||||
groups := make(map[string]interface{}, 0)
|
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
|
groups["all"] = &all_group
|
||||||
|
|
||||||
for _, res := range s.resources() {
|
for _, res := range s.resources() {
|
||||||
|
Loading…
Reference in New Issue
Block a user