Skip to content

Commit 04fd6d2

Browse files
committed
fixup! Demonstrate drop-in-file support
Signed-off-by: Evan Lezar <[email protected]>
1 parent 958febb commit 04fd6d2

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

cmd/nvidia-ctk/runtime/configure/configure.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ func (m command) configureConfigFile(config *config) error {
266266
case "containerd":
267267
cfg, err = containerd.New(
268268
containerd.WithLogger(m.logger),
269-
containerd.WithPath(config.configFilePath),
269+
containerd.WithTopLevelConfigPath(config.configFilePath),
270270
containerd.WithConfigSource(configSource),
271271
)
272272
case "crio":

pkg/config/engine/write-through.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ func (c *DropInConfig) RemoveRuntime(runtime string) error {
1414

1515
func (c *DropInConfig) AddRuntime(name string, path string, setAsDefault bool) error {
1616
options := c.Source.GetDefaultRuntimeOptions()
17-
c.Destination.AddRuntimeWithOptions(name, path, setAsDefault, options)
18-
return nil
17+
return c.Destination.AddRuntimeWithOptions(name, path, setAsDefault, options)
1918
}
2019

2120
func (c *DropInConfig) EnableCDI() {

0 commit comments

Comments
 (0)