mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 22:05:59 +00:00
Merge pull request #119278 from r4f4/azure-fix-cloud-err-detection
test: azure: check error for cloud detection.
This commit is contained in:
commit
56b5f05aea
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user