Skip to content

Commit

Permalink
fix writeConfig filePaths
Browse files Browse the repository at this point in the history
  • Loading branch information
vinay-gopalan committed Jun 10, 2024
1 parent 51fec11 commit bf72e39
Show file tree
Hide file tree
Showing 2 changed files with 175 additions and 183 deletions.
4 changes: 2 additions & 2 deletions plugin/iamutil/internal/generate_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ func getURL[T any](url string) (*T, error) {
}

func writeConfig(config iamutil.GeneratedResources) error {
tpl, err := template.ParseFiles(filepath.Join("plugin", "iamutil", "internal", templateFile))
tpl, err := template.ParseFiles(filepath.Join("internal", templateFile))
if err != nil {
return err
}
Expand All @@ -300,7 +300,7 @@ func writeConfig(config iamutil.GeneratedResources) error {
return fmt.Errorf("error formatting generated code: %w", err)
}

dst, err := os.Create(filepath.Join("plugin", "iamutil", outputFile))
dst, err := os.Create(filepath.Join(outputFile))
defer dst.Close()
if err != nil {
return err
Expand Down
Loading

0 comments on commit bf72e39

Please sign in to comment.