Skip to content

Commit

Permalink
use RelativeLink from type object
Browse files Browse the repository at this point in the history
  • Loading branch information
yukinying committed Aug 14, 2019
1 parent 3301427 commit a62867d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion third_party/validator/compute_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a62867d

Please sign in to comment.