From 5833ffe0d17ab1c1acb883b39cf2ca92518d9df5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Pinson?= Date: Wed, 17 May 2017 16:53:32 +0200 Subject: [PATCH] Use username instead of Id in log --- builtin/providers/github/data_source_github_user.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/providers/github/data_source_github_user.go b/builtin/providers/github/data_source_github_user.go index f9dbbe5fc0..fc1f9a00ab 100644 --- a/builtin/providers/github/data_source_github_user.go +++ b/builtin/providers/github/data_source_github_user.go @@ -86,9 +86,9 @@ func dataSourceGithubUser() *schema.Resource { } func dataSourceGithubUserRead(d *schema.ResourceData, meta interface{}) error { - log.Printf("[INFO] Refreshing Gitub User: %s", d.Id()) - username := d.Get("username").(string) + log.Printf("[INFO] Refreshing Gitub User: %s", username) + client := meta.(*Organization).client user, _, err := client.Users.Get(context.TODO(), username)