Save name-only instead of link path in pubsub_topic (#424)

This commit is contained in:
Vincent Roseberry 2017-09-13 16:29:26 -07:00 committed by GitHub
parent a9a2428a60
commit 870f456ef9

View File

@ -66,7 +66,7 @@ func resourcePubsubTopicRead(d *schema.ResourceData, meta interface{}) error {
return handleNotFoundError(err, d, fmt.Sprintf("Pubsub Topic %q", name))
}
d.Set("name", res.Name)
d.Set("name", GetResourceNameFromSelfLink(res.Name))
return nil
}