mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-22 18:16:52 +00:00
Merge pull request #118486 from testwill/framework
chore: use strings.Contains instead
This commit is contained in:
commit
d220ecb415
@ -52,7 +52,7 @@ func RecreateNodes(c clientset.Interface, nodes []v1.Node) error {
|
|||||||
|
|
||||||
// Find the sole managed instance group name
|
// Find the sole managed instance group name
|
||||||
var instanceGroup string
|
var instanceGroup string
|
||||||
if strings.Index(framework.TestContext.CloudConfig.NodeInstanceGroup, ",") >= 0 {
|
if strings.Contains(framework.TestContext.CloudConfig.NodeInstanceGroup, ",") {
|
||||||
return fmt.Errorf("Test does not support cluster setup with more than one managed instance group: %s", framework.TestContext.CloudConfig.NodeInstanceGroup)
|
return fmt.Errorf("Test does not support cluster setup with more than one managed instance group: %s", framework.TestContext.CloudConfig.NodeInstanceGroup)
|
||||||
}
|
}
|
||||||
instanceGroup = framework.TestContext.CloudConfig.NodeInstanceGroup
|
instanceGroup = framework.TestContext.CloudConfig.NodeInstanceGroup
|
||||||
|
Loading…
Reference in New Issue
Block a user