Skip to content

Commit

Permalink
Merge pull request #14 from ovotech/NOJIRA/investigating_more_provide…
Browse files Browse the repository at this point in the history
…r_issues

wip
  • Loading branch information
richardday-ovo authored Sep 27, 2023
2 parents 5a9d5cb + 6d94356 commit 37a7c59
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions terraform_modules.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ func (mmc *ModuleMetadataCatalog) Resolve(src string) (string, bool) {
return "", false
}

mmc.mx.RLock()
defer mmc.mx.RUnlock()

for _, meta := range mmc.Meta {
if meta.Organisation == parts[1] && meta.Name == parts[2] && meta.Provider == parts[3] {
return meta.LocalPath, true
Expand All @@ -97,9 +94,6 @@ func (mmc *ModuleMetadataCatalog) Resolve(src string) (string, bool) {
}

func (mmc *ModuleMetadataCatalog) Init() error {
mmc.mx.Lock()
defer mmc.mx.Unlock()

pattern := fmt.Sprintf("%s/**/metadata.json", mmc.root)
matches, err := zglob.Glob(pattern)
if err != nil {
Expand Down

0 comments on commit 37a7c59

Please sign in to comment.