Merge pull request #11529 from ningmingxiao/v2.0_fix

[release/2.0] Fix incorrect runtime name being passed to NRI
This commit is contained in:
Derek McGowan
2025-03-13 23:58:57 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -19,7 +19,6 @@ package nri
import (
"context"
"fmt"
"path"
"sync"
"github.com/containerd/log"
@@ -117,7 +116,7 @@ func New(cfg *Config) (API, error) {
}
var (
name = path.Base(version.Package)
name = version.Name
version = version.Version
opts = cfg.toOptions()
syncFn = l.syncPlugin