Update to etcd v3.5.0 client

This commit is contained in:
Jordan Liggitt
2021-06-15 19:01:32 -04:00
parent 3a47ddccdf
commit 6448181d95
128 changed files with 2447 additions and 995 deletions

View File

@@ -49,7 +49,7 @@ type Cgroup struct {
func parseCgroupString(cgroupStr string) (*Cgroup, error) {
var err error
fields := strings.Split(cgroupStr, ":")
fields := strings.SplitN(cgroupStr, ":", 3)
if len(fields) < 3 {
return nil, fmt.Errorf("at least 3 fields required, found %d fields in cgroup string: %s", len(fields), cgroupStr)
}