Skip to content

Commit

Permalink
add slash back to disk check
Browse files Browse the repository at this point in the history
  • Loading branch information
danawillow committed Jun 28, 2017
1 parent e4b5e18 commit 0da8f03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion google/resource_compute_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ func testAccCheckComputeInstanceDisk(instance *compute.Instance, source string,
}

for _, disk := range instance.Disks {
if strings.HasSuffix(disk.Source, source) && disk.AutoDelete == delete && disk.Boot == boot {
if strings.HasSuffix(disk.Source, "/"+source) && disk.AutoDelete == delete && disk.Boot == boot {
return nil
}
}
Expand Down

0 comments on commit 0da8f03

Please sign in to comment.