Skip to content

Commit 27aa3f6

Browse files
committed
add slash back to disk check
1 parent 4c6a1cc commit 27aa3f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

google/resource_compute_instance_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -813,7 +813,7 @@ func testAccCheckComputeInstanceDisk(instance *compute.Instance, source string,
813813
}
814814

815815
for _, disk := range instance.Disks {
816-
if strings.HasSuffix(disk.Source, source) && disk.AutoDelete == delete && disk.Boot == boot {
816+
if strings.HasSuffix(disk.Source, "/"+source) && disk.AutoDelete == delete && disk.Boot == boot {
817817
return nil
818818
}
819819
}

0 commit comments

Comments
 (0)