Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions cmd/nvidia-ctk-installer/container/container.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ const (
// Options defines the shared options for the CLIs to configure containers runtimes.
type Options struct {
DropInConfig string
// TODO: Rename to TopLevelConfig
Config string
Socket string
// TopLevelConfigPath stores the path to the top-level config for the runtime.
TopLevelConfigPath string
Socket string
// ExecutablePath specifies the path to the container runtime executable.
// This is used to extract the current config, for example.
// If a HostRootMount is specified, this path is relative to the host root
Expand Down Expand Up @@ -75,7 +75,7 @@ func (o Options) Unconfigure(cfg engine.Interface) error {
func (o Options) flush(cfg engine.Interface) error {
filepath := o.DropInConfig
if filepath == "" {
filepath = o.Config
filepath = o.TopLevelConfigPath
}
logrus.Infof("Flushing config to %v", filepath)
n, err := cfg.Save(filepath)
Expand Down
Loading
Loading