Skip to content

Commit 0da8f03

Browse files
committed
add slash back to disk check
1 parent e4b5e18 commit 0da8f03

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
@@ -815,7 +815,7 @@ func testAccCheckComputeInstanceDisk(instance *compute.Instance, source string,
815815
}
816816

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

0 commit comments

Comments
 (0)