Fix docstring

Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
Evan Lezar 2024-02-07 12:33:02 +01:00
parent 3604927034
commit b6987c526a

View File

@ -19,8 +19,9 @@ package containerd
import ( import (
"fmt" "fmt"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/config/engine"
"github.com/pelletier/go-toml" "github.com/pelletier/go-toml"
"github.com/NVIDIA/nvidia-container-toolkit/pkg/config/engine"
) )
// ConfigV1 represents a version 1 containerd config // ConfigV1 represents a version 1 containerd config
@ -134,7 +135,7 @@ func (c *ConfigV1) RemoveRuntime(name string) error {
return nil return nil
} }
// SetOption sets the specified containerd option. // Set sets the specified containerd option.
func (c *ConfigV1) Set(key string, value interface{}) error { func (c *ConfigV1) Set(key string, value interface{}) error {
config := *c.Tree config := *c.Tree
config.SetPath([]string{"plugins", "cri", "containerd", key}, value) config.SetPath([]string{"plugins", "cri", "containerd", key}, value)