Skip to content

Commit

Permalink
Merge pull request #450 from fernandezcuesta/patch-1
Browse files Browse the repository at this point in the history
fix: typo in example
  • Loading branch information
mergenci authored Dec 29, 2024
2 parents 4d4ed3d + 8642d46 commit a10b5b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/adding-new-resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ func resourceName() config.ExternalName{
if !ok {
return "", errors.New("id in tfstate cannot be empty")
}
w := strings.Split(s.(string), ":")
w := strings.Split(id.(string), ":")
return w[len(w)-1], nil
}
}
Expand Down

0 comments on commit a10b5b9

Please sign in to comment.