Fix reversed order of variables

This commit is contained in:
xiangpengzhao 2016-07-18 08:06:54 -04:00
parent 9b5696b7b4
commit 48b5a5825a

View File

@ -1602,7 +1602,7 @@ func (dm *DockerManager) applyOOMScoreAdjIfNeeded(pod *api.Pod, container *api.C
// If current api version is older than OOMScoreAdj requested, use the old way.
if result < 0 {
if err := dm.applyOOMScoreAdj(pod, container, containerInfo); err != nil {
return fmt.Errorf("Failed to apply oom-score-adj to container %q- %v", err, containerInfo.Name)
return fmt.Errorf("Failed to apply oom-score-adj to container %q- %v", containerInfo.Name, err)
}
}