Fix if condition in test

This commit is contained in:
Reinhard Nägele 2017-01-13 19:37:59 +01:00
parent 722fad6d94
commit 17e8e94fb8
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ func testAccCheckContainerClusterAdditionalZonesExist(n string) resource.TestChe
if additionalZonesSize, err = strconv.Atoi(rs.Primary.Attributes["additional_zones.#"]); err != nil { if additionalZonesSize, err = strconv.Atoi(rs.Primary.Attributes["additional_zones.#"]); err != nil {
return err return err
} }
if additionalZonesSize < 2 { if additionalZonesSize != 2 {
return fmt.Errorf("number of additional zones did not match 2") return fmt.Errorf("number of additional zones did not match 2")
} }