fix "libcontainer/cgroups/fs/cpuset.go:63:14: undefined: fmt"

The compilation error had ocurred because of a bad rebase during #2401 and #2413

Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
This commit is contained in:
Akihiro Suda 2020-05-19 23:38:20 +09:00
parent f369199ff6
commit 2fa3c286b5
1 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,6 @@ package fs
import ( import (
"bytes" "bytes"
"errors"
"io/ioutil" "io/ioutil"
"os" "os"
"path/filepath" "path/filepath"
@ -14,6 +13,7 @@ import (
"github.com/opencontainers/runc/libcontainer/cgroups/fscommon" "github.com/opencontainers/runc/libcontainer/cgroups/fscommon"
"github.com/opencontainers/runc/libcontainer/configs" "github.com/opencontainers/runc/libcontainer/configs"
libcontainerUtils "github.com/opencontainers/runc/libcontainer/utils" libcontainerUtils "github.com/opencontainers/runc/libcontainer/utils"
"github.com/pkg/errors"
) )
type CpusetGroup struct { type CpusetGroup struct {
@ -60,7 +60,7 @@ func getMount(dir string) (string, error) {
return "", err return "", err
} }
if len(mi) < 1 { if len(mi) < 1 {
return "", fmt.Errorf("Can't find mount point of %s", dir) return "", errors.Errorf("Can't find mount point of %s", dir)
} }
// find the longest mount point // find the longest mount point