provider/google: fix InstanceGroupManager CheckDestroy in tests

Nil check was just backwards. Vetted by comparing to other tests with
similar CheckDestroy implementations
This commit is contained in:
Paul Hinze 2016-01-04 16:29:31 -06:00
parent 7326633060
commit 983b34291d
1 changed files with 1 additions and 1 deletions

View File

@ -69,7 +69,7 @@ func testAccCheckInstanceGroupManagerDestroy(s *terraform.State) error {
}
_, err := config.clientCompute.InstanceGroupManagers.Get(
config.Project, rs.Primary.Attributes["zone"], rs.Primary.ID).Do()
if err != nil {
if err == nil {
return fmt.Errorf("InstanceGroupManager still exists")
}
}