Skip to content

Commit

Permalink
remove version from module name
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanking committed Jul 18, 2018
1 parent e06c0c5 commit 9424fac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apply/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import (
"path/filepath"
"sort"
"strings"
"regexp"

"github.com/chanzuckerberg/fogg/config"
"github.com/chanzuckerberg/fogg/plan"
Expand Down Expand Up @@ -281,6 +282,8 @@ func applyModule(fs afero.Fs, path, mod string, box packr.Box) error {
}
sort.Strings(outputs)
moduleName := filepath.Base(mod)
re := regexp.MustCompile("\\?ref=.*")
moduleName = re.ReplaceAllString(moduleName, "")

f, e := box.Open("main.tf.tmpl")
if e != nil {
Expand Down

0 comments on commit 9424fac

Please sign in to comment.