Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initializes all_group to be an empty array #49

Merged
merged 2 commits into from Jan 19, 2017

Conversation

lolchocotaco
Copy link
Contributor

Fixes #48.

@@ -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{}, 0), Hosts: make([]string, 0)}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The size parameter is unnecessary when making a map.

@adammck
Copy link
Owner

adammck commented Nov 5, 2016

Great, thanks for the patch! Looks good to me, other than the very minor nit above.
Fixed!

@adammck adammck merged commit be8d8d7 into adammck:master Jan 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants