mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
dont dereference pointers on Set
This commit is contained in:
parent
e97900aef2
commit
75e61606bb
@ -50,8 +50,8 @@ func dataSourceAwsCallerIdentityRead(d *schema.ResourceData, meta interface{}) e
|
|||||||
}
|
}
|
||||||
|
|
||||||
log.Printf("[DEBUG] Setting AWS Account ID to %s.", *res.Account)
|
log.Printf("[DEBUG] Setting AWS Account ID to %s.", *res.Account)
|
||||||
d.Set("account_id", *res.Account)
|
d.Set("account_id", res.Account)
|
||||||
d.Set("arn", *res.Arn)
|
d.Set("arn", res.Arn)
|
||||||
d.Set("user_id", *res.UserId)
|
d.Set("user_id", res.UserId)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user