Save region name-only instead of the self-link in compute_address (#422)

This commit is contained in:
Vincent Roseberry 2017-09-13 09:51:32 -07:00 committed by GitHub
parent 7a7926a7ca
commit f83618624c

View File

@ -113,7 +113,7 @@ func resourceComputeAddressRead(d *schema.ResourceData, meta interface{}) error
d.Set("address", addr.Address)
d.Set("self_link", addr.SelfLink)
d.Set("name", addr.Name)
d.Set("region", addr.Region)
d.Set("region", GetResourceNameFromSelfLink(addr.Region))
return nil
}