Skip to content

Commit

Permalink
Convert to v1 self link before saving to state
Browse files Browse the repository at this point in the history
  • Loading branch information
slevenick committed Nov 26, 2019
1 parent e6a4d8a commit 799a9db
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func resourceComputeNetworkPeeringImport(d *schema.ResourceData, meta interface{
if err != nil {
return nil, err
}
d.Set("network", fmt.Sprintf(urlTemplate, splits[0], splits[1]))
d.Set("network", ConvertSelfLinkToV1(fmt.Sprintf(urlTemplate, splits[0], splits[1])))
d.Set("name", splits[2])

// Replace import id for the resource id
Expand Down

0 comments on commit 799a9db

Please sign in to comment.