Skip to content

Commit

Permalink
use filepath.Dir()
Browse files Browse the repository at this point in the history
  • Loading branch information
patilpankaj212 committed Apr 6, 2021
1 parent 2a1e33e commit 8a64570
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/iac-providers/terraform/commons/load-dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func processLocalSource(req *hclConfigs.ModuleRequest) string {
// path of caller dir, and join the source address of current module request to get the path to module

// get the caller dir path
callDirPath := filepath.Join(req.CallRange.Filename, "..")
callDirPath := filepath.Dir(req.CallRange.Filename)

// join source address to the caller dir
return filepath.Join(callDirPath, req.SourceAddr)
Expand Down

0 comments on commit 8a64570

Please sign in to comment.