mirror of
https://github.com/containers/podman.git
synced 2025-12-04 20:28:40 +08:00
Modify secrets pkg
Made a mistake in my earlier patch. I though that if you add an empty string to an array, the length of the array would still be 0... Realised this when vendoring the secrets pkg into cri-o. Signed-off-by: umohnani8 <umohnani@redhat.com> Closes: #685 Approved by: mheon
This commit is contained in:
@@ -194,7 +194,10 @@ func WithDefaultMountsFile(mountsFile string) RuntimeOption {
|
||||
return ErrRuntimeFinalized
|
||||
}
|
||||
|
||||
rt.config.DefaultMountsFile = []string{mountsFile}
|
||||
if mountsFile == "" {
|
||||
return ErrInvalidArg
|
||||
}
|
||||
rt.config.DefaultMountsFile = mountsFile
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ type RuntimeConfig struct {
|
||||
// HooksDir Path to the directory containing hooks configuration files
|
||||
HooksDir string `toml:"hooks_dir"`
|
||||
// DefaultMountsFile is the path to the default mounts file for testing purposes only
|
||||
DefaultMountsFile []string `toml:"-"`
|
||||
DefaultMountsFile string `toml:"-"`
|
||||
}
|
||||
|
||||
var (
|
||||
|
||||
Reference in New Issue
Block a user