Use username instead of Id in log
This commit is contained in:
parent
fc0d197be8
commit
5833ffe0d1
|
@ -86,9 +86,9 @@ func dataSourceGithubUser() *schema.Resource {
|
||||||
}
|
}
|
||||||
|
|
||||||
func dataSourceGithubUserRead(d *schema.ResourceData, meta interface{}) error {
|
func dataSourceGithubUserRead(d *schema.ResourceData, meta interface{}) error {
|
||||||
log.Printf("[INFO] Refreshing Gitub User: %s", d.Id())
|
|
||||||
|
|
||||||
username := d.Get("username").(string)
|
username := d.Get("username").(string)
|
||||||
|
log.Printf("[INFO] Refreshing Gitub User: %s", username)
|
||||||
|
|
||||||
client := meta.(*Organization).client
|
client := meta.(*Organization).client
|
||||||
|
|
||||||
user, _, err := client.Users.Get(context.TODO(), username)
|
user, _, err := client.Users.Get(context.TODO(), username)
|
||||||
|
|
Loading…
Reference in New Issue