From 8642d469573a1783a4a6bfe861a3ef72184e2ed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fern=C3=A1ndez?= <7312236+fernandezcuesta@users.noreply.github.com> Date: Wed, 13 Nov 2024 18:22:11 +0100 Subject: [PATCH] fix: typo in example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jesús Fernández <7312236+fernandezcuesta@users.noreply.github.com> --- docs/adding-new-resource.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/adding-new-resource.md b/docs/adding-new-resource.md index 23b8742b..6f0492aa 100644 --- a/docs/adding-new-resource.md +++ b/docs/adding-new-resource.md @@ -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 } }