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 6cb95b49ee
commit b2018a0ba5

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")
}
}