mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-25 21:39:10 +00:00
Correct typo in constructor name
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
6682bc90b4
commit
2f2846116e
@ -39,7 +39,7 @@ var _ Discover = (*legacy)(nil)
|
||||
func NewLegacyDiscoverer(logger *logrus.Logger, root string) (Discover, error) {
|
||||
d := legacy{
|
||||
logger: logger,
|
||||
lookup: lookup.NewExecutaleLocator(logger, root),
|
||||
lookup: lookup.NewExecutableLocator(logger, root),
|
||||
}
|
||||
|
||||
return &d, nil
|
||||
|
@ -35,8 +35,8 @@ type executable struct {
|
||||
file
|
||||
}
|
||||
|
||||
// NewExecutaleLocator creates a locator to fine executable files in the path. A logger can also be specified.
|
||||
func NewExecutaleLocator(logger *log.Logger, root string) Locator {
|
||||
// NewExecutableLocator creates a locator to fine executable files in the path. A logger can also be specified.
|
||||
func NewExecutableLocator(logger *log.Logger, root string) Locator {
|
||||
pathEnv := os.Getenv(envPath)
|
||||
paths := filepath.SplitList(pathEnv)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user