Use pod sandbox id in checkpoint

This commit is contained in:
Harry Zhang
2017-03-06 10:46:26 +08:00
parent df70b30e59
commit bc644f9e04

View File

@@ -301,7 +301,7 @@ func (ds *dockerService) GetPodPortMappings(podSandboxID string) ([]*hostport.Po
// Return empty portMappings if checkpoint is not found // Return empty portMappings if checkpoint is not found
if err != nil { if err != nil {
if err == errors.CheckpointNotFoundError { if err == errors.CheckpointNotFoundError {
glog.Warningf("Failed to retrieve checkpoint for sandbox %q: %v", err) glog.Warningf("Failed to retrieve checkpoint for sandbox %q: %v", podSandboxID, err)
return nil, nil return nil, nil
} else { } else {
return nil, err return nil, err