Merge pull request #97477 from heqg/run-test01

Optimized some non-standard variable names
This commit is contained in:
Kubernetes Prow Robot 2021-01-11 14:46:25 -08:00 committed by GitHub
commit 2636a959c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -113,10 +113,10 @@ func StartTestServer(t Logger, customFlags []string) (result TestServer, err err
if err != nil {
return result, fmt.Errorf("failed to create config from options: %v", err)
}
cloudconfig := config.Complete().ComponentConfig.KubeCloudShared.CloudProvider
cloud, err := cloudprovider.InitCloudProvider(cloudconfig.Name, cloudconfig.CloudConfigFile)
cloudConfig := config.Complete().ComponentConfig.KubeCloudShared.CloudProvider
cloud, err := cloudprovider.InitCloudProvider(cloudConfig.Name, cloudConfig.CloudConfigFile)
if err != nil {
return result, fmt.Errorf("Cloud provider could not be initialized: %v", err)
return result, fmt.Errorf("cloud provider could not be initialized: %v", err)
}
if cloud == nil {
return result, fmt.Errorf("cloud provider is nil")