mirror of
				https://github.com/NVIDIA/nvidia-container-toolkit
				synced 2025-06-26 18:18:24 +00:00 
			
		
		
		
	FIX: Rename DefaultRoot to DefaultMountSpecPath
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
		
							parent
							
								
									b7d130e151
								
							
						
					
					
						commit
						26d2873bb2
					
				| @ -68,7 +68,7 @@ func NewExperimentalModifier(logger *logrus.Logger, cfg *config.Config, ociSpec | |||||||
| 		} | 		} | ||||||
| 		d = legacyDiscoverer | 		d = legacyDiscoverer | ||||||
| 	case "csv": | 	case "csv": | ||||||
| 		csvFiles, err := csv.GetFileList(csv.DefaultRoot) | 		csvFiles, err := csv.GetFileList(csv.DefaultMountSpecPath) | ||||||
| 		if err != nil { | 		if err != nil { | ||||||
| 			return nil, fmt.Errorf("failed to get list of CSV files: %v", err) | 			return nil, fmt.Errorf("failed to get list of CSV files: %v", err) | ||||||
| 		} | 		} | ||||||
|  | |||||||
| @ -29,8 +29,8 @@ import ( | |||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| const ( | const ( | ||||||
| 	// DefaultRoot is default location of CSV files that define the modifications required to the OCI spec
 | 	// DefaultMountSpecPath is default location of CSV files that define the modifications required to the OCI spec
 | ||||||
| 	DefaultRoot = "/etc/nvidia-container-runtime/host-files-for-container.d" | 	DefaultMountSpecPath = "/etc/nvidia-container-runtime/host-files-for-container.d" | ||||||
| ) | ) | ||||||
| 
 | 
 | ||||||
| // GetFileList returns the (non-recursive) list of CSV files in the specified
 | // GetFileList returns the (non-recursive) list of CSV files in the specified
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user