Skip to content

Commit

Permalink
Merge pull request #832 from lmm/lmm-pick-v3.8
Browse files Browse the repository at this point in the history
release-v3.8 - Cherry-pick Fix containerID read during IPAM migration
  • Loading branch information
lmm committed Jan 6, 2020
2 parents 467b584 + 4893468 commit 77cffe0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/upgrade/migrate.go
Expand Up @@ -275,7 +275,8 @@ func Migrate(ctxt context.Context, c client.Interface, nodename string) error {
if err != nil {
return fmt.Errorf("failed to read file %s: %s", fname, err)
}
containerID := string(b)
// The containerID is the first line in the file.
containerID := strings.TrimSpace(strings.Split(string(b), "\n")[0])

// Get the pod resource associated with the IP.
pod, ok := podIPMap[f.Name()]
Expand Down

0 comments on commit 77cffe0

Please sign in to comment.