Closed jchrisfarris closed 7 years ago
Looks like the issue is here. You'll want a $
after the c.Environment. I'd fix, but I need to get a go environment setup and lack the cycles at the moment.
func findEnvSpecificTfFilesToCombine(c config.Config) []string { combineable := []string{} fileList, := ioutil.ReadDir(c.OriginPath) // add environment specific files for , fPath := range fileList { if m, _ := regexp.MatchString(`..tf.`+c.Environment, fPath.Name()); m { combineable = append(combineable, util.PathJoin(c.OriginPath, fPath.Name())) } }
Should be fixed now. See: https://github.com/craigmonson/colonize/commit/d2ff8a5afa00188dc8fae9fc3b4cd101ed5807cf
I'll close this once you give me the thumbs up.
You were spot on btw, and thanks!
With a colonize segment like this:
the command
colonize -e non-prod prep
will source both the main.tf.non-prod and main.tf.non-prod-dr filecolonize version Colonize v0.1.0-alpha