mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-29 07:21:46 +00:00
Return default config if config path is not found
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
f0cae49892
commit
73a5b70a02
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
## v1.10.0-rc.3
|
## v1.10.0-rc.3
|
||||||
|
|
||||||
|
* Use default config instead of raising an error if config file cannot be found
|
||||||
* Ignore NVIDIA_REQUIRE_JETPACK* environment variables for requirement checks
|
* Ignore NVIDIA_REQUIRE_JETPACK* environment variables for requirement checks
|
||||||
* Fix bug in detection of Tegra systems where `/sys/devices/soc0/family` is ignored
|
* Fix bug in detection of Tegra systems where `/sys/devices/soc0/family` is ignored
|
||||||
* Fix bug where links to devices were detected as devices
|
* Fix bug where links to devices were detected as devices
|
||||||
|
@ -61,7 +61,7 @@ func GetConfig() (*Config, error) {
|
|||||||
|
|
||||||
tomlFile, err := os.Open(configFilePath)
|
tomlFile, err := os.Open(configFilePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to open config file %v: %v", configFilePath, err)
|
return getDefaultConfig(), nil
|
||||||
}
|
}
|
||||||
defer tomlFile.Close()
|
defer tomlFile.Close()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user