diff --git a/third_party/terraform/resources/resource_compute_instance.go b/third_party/terraform/resources/resource_compute_instance.go index fb2a60e06a8d..848575e2f143 100644 --- a/third_party/terraform/resources/resource_compute_instance.go +++ b/third_party/terraform/resources/resource_compute_instance.go @@ -651,7 +651,7 @@ func expandComputeInstance(project string, d *schema.ResourceData, config *Confi "Error loading machine type: %s", err) } - machineTypeUrl = machineType.SelfLink + machineTypeUrl = machineType.RelativeLink() } // Build up the list of disks diff --git a/third_party/validator/compute_instance.go b/third_party/validator/compute_instance.go index 2c5e926e6625..0bad89cf2a51 100644 --- a/third_party/validator/compute_instance.go +++ b/third_party/validator/compute_instance.go @@ -61,7 +61,7 @@ func expandComputeInstance(project string, d TerraformResourceData, config *Conf "Error loading machine type: %s", err) } - machineTypeUrl = machineType.SelfLink + machineTypeUrl = machineType.RelativeLink() } // Build up the list of disks