Skip to content

Commit

Permalink
Use resolved mappings when searching for storage
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Lucidi <[email protected]>
  • Loading branch information
mansam committed Dec 13, 2024
1 parent b93aaca commit 9c70863
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/controller/plan/adapter/ova/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,9 @@ func (r *Builder) DataVolumes(vmRef ref.Ref, secret *core.Secret, _ *core.Config
}

for _, disk := range vm.Disks {
mapping, found := r.Context.Map.Storage.FindStorage(disk.ID)
mapping, found := r.Context.Plan.Referenced.Map.Storage.FindStorage(disk.ID)
if !found {
mapping, found = r.Context.Map.Storage.FindStorage(DefaultStorageID)
mapping, found = r.Context.Plan.Referenced.Map.Storage.FindStorage(DefaultStorageID)
if !found {
err = liberr.New(
"Disk does not have individual mapping and could not find default in storage map",
Expand Down

0 comments on commit 9c70863

Please sign in to comment.