Skip to content

Commit 4a4cea6

Browse files
committed
fix the NRI_PLUGIN_NAME env value when launching a pre-installed plugin
Signed-off-by: Iceber Gu <[email protected]>
1 parent a67478e commit 4a4cea6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pkg/adaptation/plugin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (r *Adaptation) newLaunchedPlugin(dir, idx, base, cfg string) (p *plugin, r
119119
cmd := exec.Command(filepath.Join(dir, name))
120120
cmd.ExtraFiles = []*os.File{peerFile}
121121
cmd.Env = []string{
122-
api.PluginNameEnvVar + "=" + name,
122+
api.PluginNameEnvVar + "=" + base,
123123
api.PluginIdxEnvVar + "=" + idx,
124124
api.PluginSocketEnvVar + "=3",
125125
}

0 commit comments

Comments
 (0)