fix reversed equals error

Signed-off-by: Avi Deitcher <avi@deitcher.net>
This commit is contained in:
Avi Deitcher
2020-10-19 17:26:25 +03:00
parent f0b002718d
commit 54be4048f0
4 changed files with 66 additions and 1 deletions

View File

@@ -85,7 +85,7 @@ func systemInitCmd(ctx context.Context, args []string) {
// look for containerd options
ctrdArgs := []string{}
if b, err := ioutil.ReadFile(containerdOptsFile); err != nil {
if b, err := ioutil.ReadFile(containerdOptsFile); err == nil {
ctrdArgs = strings.Fields(string(b))
}