Warn instead of erroring if --gce-zone is not passed to e2e.test when --provider=aws

This commit is contained in:
Matthew Wong 2021-02-03 12:54:32 -08:00
parent af8594ff99
commit f3062a83d2

View File

@ -38,7 +38,7 @@ func init() {
func newProvider() (framework.ProviderInterface, error) {
if framework.TestContext.CloudConfig.Zone == "" {
return nil, fmt.Errorf("gce-zone must be specified for AWS")
framework.Logf("Warning: gce-zone not specified! Some tests that use the AWS SDK may select the wrong region and fail.")
}
return &Provider{}, nil
}