Use username instead of Id in log

This commit is contained in:
Raphaël Pinson 2017-05-17 16:53:32 +02:00
parent fc0d197be8
commit 5833ffe0d1
No known key found for this signature in database
GPG Key ID: DF0A493B74BF771E
1 changed files with 2 additions and 2 deletions

View File

@ -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)