diff --git a/builtin/providers/github/data_source_github_user.go b/builtin/providers/github/data_source_github_user.go index f9dbbe5fc..fc1f9a00a 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)