Skip to content

Commit

Permalink
fix: migrate-resource tool
Browse files Browse the repository at this point in the history
  • Loading branch information
ekristen committed Jan 25, 2024
1 parent 9ec8d4a commit 7889033
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/migrate-resource/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func main() {
match := regexp.MustCompile("register\\(\"(?P<resource>.*)\",\\s?(?P<function>\\w+)(,)?(\\s+mapCloudControl\\(\"(?P<cc>.*)\"\\))?")
funcMatch := regexp.MustCompile("func List.*{")

filename := filepath.Join(originalSourceDir, "resources", args[1]+".go")
filename := filepath.Join(originalSourceDir, args[1]+".go")

originalFileContents, err := os.ReadFile(filename)
if err != nil {
Expand Down

0 comments on commit 7889033

Please sign in to comment.