From 9c70863cf331f571d8e5545c10f9b682bf736165 Mon Sep 17 00:00:00 2001 From: Sam Lucidi Date: Fri, 13 Dec 2024 15:48:23 -0500 Subject: [PATCH] Use resolved mappings when searching for storage Signed-off-by: Sam Lucidi --- pkg/controller/plan/adapter/ova/builder.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/controller/plan/adapter/ova/builder.go b/pkg/controller/plan/adapter/ova/builder.go index 0ce40198e..5d563c3d7 100644 --- a/pkg/controller/plan/adapter/ova/builder.go +++ b/pkg/controller/plan/adapter/ova/builder.go @@ -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",