diff --git a/metakube/provider_test.go b/metakube/provider_test.go index 5edd208..acbe51e 100644 --- a/metakube/provider_test.go +++ b/metakube/provider_test.go @@ -71,6 +71,7 @@ func testAccPreCheckForOpenstack(t *testing.T) { checkEnv(t, testEnvOpenstackImage) checkEnv(t, testEnvOpenstackImage2) checkEnv(t, testEnvOpenstackFlavor) + checkEnv(t, testEnvOpenstackAuthUrl) } func testAccPreCheckForAzure(t *testing.T) { diff --git a/metakube/resource_metakube_cluster_validation.go b/metakube/resource_metakube_cluster_validation.go index 81b3fa8..b6ded78 100644 --- a/metakube/resource_metakube_cluster_validation.go +++ b/metakube/resource_metakube_cluster_validation.go @@ -91,7 +91,7 @@ func metakubeResourceValidateVersionExistence(ctx context.Context, d *schema.Res available := make([]string, 0) for _, v := range r.Payload { available = append(available, v.Version.(string)) - if s, ok := v.Version.(string); ok && s == version { + if v.Version.(string) == version { return nil } }