Merge pull request #119278 from r4f4/azure-fix-cloud-err-detection

test: azure: check error for cloud detection.
This commit is contained in:
Kubernetes Prow Robot 2023-07-13 01:28:07 -07:00 committed by GitHub
commit 56b5f05aea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,9 +46,12 @@ func newProvider() (framework.ProviderInterface, error) {
defer config.Close() defer config.Close()
} }
azureCloud, err := azure.NewCloud(config) azureCloud, err := azure.NewCloud(config)
if err != nil {
return nil, err
}
return &Provider{ return &Provider{
azureCloud: azureCloud.(*azure.Cloud), azureCloud: azureCloud.(*azure.Cloud),
}, err }, nil
} }
// Provider is a structure to handle Azure clouds for e2e testing // Provider is a structure to handle Azure clouds for e2e testing