From deb9dae35cc5679d32b6973d1123af36f20e0560 Mon Sep 17 00:00:00 2001 From: Thomas Poindessous Date: Mon, 27 Feb 2017 14:26:00 +0100 Subject: [PATCH] Be more specific on the regexp used to detect URI --- builtin/providers/google/resource_compute_disk.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builtin/providers/google/resource_compute_disk.go b/builtin/providers/google/resource_compute_disk.go index 198e8cdd3..18fc9d04f 100644 --- a/builtin/providers/google/resource_compute_disk.go +++ b/builtin/providers/google/resource_compute_disk.go @@ -130,7 +130,7 @@ func resourceComputeDiskCreate(d *schema.ResourceData, meta interface{}) error { if v, ok := d.GetOk("snapshot"); ok { snapshotName := v.(string) - match, _ := regexp.MatchString("^http", snapshotName) + match, _ := regexp.MatchString("^https://www.googleapis.com/compute", snapshotName) if match { disk.SourceSnapshot = snapshotName } else {