From c5bf7a7c60a55db22749ddf3b3ce99ae60a65849 Mon Sep 17 00:00:00 2001 From: Samuel El-Borai Date: Wed, 24 May 2017 21:11:00 +0200 Subject: [PATCH] fix custom providers snippets (#14806) --- .../source/guides/writing-custom-terraform-providers.html.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/source/guides/writing-custom-terraform-providers.html.md b/website/source/guides/writing-custom-terraform-providers.html.md index fffc2cf0e..9088f159a 100644 --- a/website/source/guides/writing-custom-terraform-providers.html.md +++ b/website/source/guides/writing-custom-terraform-providers.html.md @@ -468,7 +468,7 @@ func resourceServerUpdate(d *schema.ResourceData, m interface{}) error { if d.HasChange("address") { // Try updating the address - if err := updateAddress(d, meta); err != nil { + if err := updateAddress(d, m); err != nil { return err } @@ -546,7 +546,7 @@ exists (maybe it was destroyed out of band). Just like the destroy callback, the ```go func resourceServerRead(d *schema.ResourceData, m interface{}) error { - client := meta.(*MyClient) + client := m.(*MyClient) // Attempt to read from an upstream API obj, ok := client.Get(d.Id())