Skip to content

Commit

Permalink
workspaces: always ignore .terraform directoies
Browse files Browse the repository at this point in the history
  • Loading branch information
sontags committed Nov 28, 2019
1 parent f821d1f commit 8818387
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions workspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const (
func GetWorkspaces(root string, ignore []string) (map[string]*Workspace, error) {
workspaces := map[string]*Workspace{}

ignore = append(ignore, ".terraform")

err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
for _, i := range ignore {
if strings.Contains(path, i) {
Expand Down

0 comments on commit 8818387

Please sign in to comment.