mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-18 16:21:13 +00:00
chore: use strings.Contains instead
This commit is contained in:
parent
587f0a2210
commit
923db7bd8e
@ -52,7 +52,7 @@ func RecreateNodes(c clientset.Interface, nodes []v1.Node) error {
|
||||
|
||||
// Find the sole managed instance group name
|
||||
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)
|
||||
}
|
||||
instanceGroup = framework.TestContext.CloudConfig.NodeInstanceGroup
|
||||
|
Loading…
Reference in New Issue
Block a user