mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2025-06-26 18:18:24 +00:00
skip error when bundleDir not exist
This commit is contained in:
parent
52f52d5376
commit
084ff480bc
@ -161,7 +161,9 @@ func getOCISpecFilePath(bundleDir string) (string, error) {
|
||||
logger.Infof("Bundle directory path is empty, using working directory.")
|
||||
workingDirectory, err := os.Getwd()
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("error getting working directory: %v", err)
|
||||
// don't return error here, the later oci.spec.load for 'runc create' will raise it.
|
||||
logger.Errorf("error getting working directory: %v", err)
|
||||
return "", nil
|
||||
}
|
||||
bundleDir = workingDirectory
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user