We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0c4bb6 commit 3aff986Copy full SHA for 3aff986
1 file changed
pkg/runtime-tools/generate/generate.go
@@ -504,15 +504,15 @@ func (g *Generator) AdjustMounts(mounts []*nri.Mount) error {
504
505
// sortMounts sorts the mounts in the generated OCI Spec.
506
func (g *Generator) sortMounts() {
507
- mounts := g.Generator.Mounts()
508
- g.Generator.ClearMounts()
+ mounts := g.Mounts()
+ g.ClearMounts()
509
sort.Sort(orderedMounts(mounts))
510
511
// TODO(klihub): This is now a bit ugly maybe we should introduce a
512
// SetMounts([]rspec.Mount) to runtime-tools/generate.Generator. That
513
// could also take care of properly sorting the mount slice.
514
515
- g.Generator.Config.Mounts = mounts
+ g.Config.Mounts = mounts
516
}
517
518
// orderedMounts defines how to sort an OCI Spec Mount slice.
0 commit comments