mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 08:18:32 +00:00
Implement Set() for the crio implementation of engine.Interface
Signed-off-by: Christopher Desiniotis <cdesiniotis@nvidia.com>
This commit is contained in:
parent
527248ef5b
commit
d7a3d93024
@ -101,8 +101,12 @@ func (c *Config) RemoveRuntime(name string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set is not supported for cri-o configs.
|
// Set sets the specified cri-o option.
|
||||||
func (c *Config) Set(key string, value interface{}) {}
|
func (c *Config) Set(key string, value interface{}) {
|
||||||
|
config := (toml.Tree)(*c)
|
||||||
|
config.Set(key, value)
|
||||||
|
*c = (Config)(config)
|
||||||
|
}
|
||||||
|
|
||||||
// Save writes the config to the specified path
|
// Save writes the config to the specified path
|
||||||
func (c Config) Save(path string) (int64, error) {
|
func (c Config) Save(path string) (int64, error) {
|
||||||
|
Loading…
Reference in New Issue
Block a user