File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed 
pkg/runtime-tools/generate Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -504,15 +504,15 @@ func (g *Generator) AdjustMounts(mounts []*nri.Mount) error {
504504
505505// sortMounts sorts the mounts in the generated OCI Spec. 
506506func  (g  * Generator ) sortMounts () {
507- 	mounts  :=  g .Generator . Mounts ()
508- 	g .Generator . ClearMounts ()
507+ 	mounts  :=  g .Mounts ()
508+ 	g .ClearMounts ()
509509	sort .Sort (orderedMounts (mounts ))
510510
511511	// TODO(klihub): This is now a bit ugly maybe we should introduce a 
512512	// SetMounts([]rspec.Mount) to runtime-tools/generate.Generator. That 
513513	// could also take care of properly sorting the mount slice. 
514514
515- 	g .Generator . Config .Mounts  =  mounts 
515+ 	g .Config .Mounts  =  mounts 
516516}
517517
518518// orderedMounts defines how to sort an OCI Spec Mount slice. 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments