Skip to content

Commit

Permalink
fix: typo in example
Browse files Browse the repository at this point in the history
Signed-off-by: Jesús Fernández <[email protected]>
  • Loading branch information
fernandezcuesta committed Nov 13, 2024
1 parent a18bd41 commit 8642d46
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 8642d46

Please sign in to comment.