From a7ad80ff203aa7ea078fa09b1af5216cf793e1d5 Mon Sep 17 00:00:00 2001 From: Maksim An Date: Thu, 24 Jun 2021 09:34:21 -0700 Subject: [PATCH] fix wrong error logged when dm-verity footer read fails Signed-off-by: Maksim An --- internal/uvm/vpmem.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/uvm/vpmem.go b/internal/uvm/vpmem.go index dc9609863f..6c099bc840 100644 --- a/internal/uvm/vpmem.go +++ b/internal/uvm/vpmem.go @@ -149,7 +149,7 @@ func (uvm *UtilityVM) addVPMemDefault(ctx context.Context, hostPath string) (_ s MountPath: uvmPath, } if v, iErr := readVeritySuperBlock(ctx, hostPath); iErr != nil { - log.G(ctx).WithError(err).WithField("hostPath", hostPath).Debug("unable to read dm-verity information from VHD") + log.G(ctx).WithError(iErr).WithField("hostPath", hostPath).Debug("unable to read dm-verity information from VHD") } else { if v != nil { log.G(ctx).WithFields(logrus.Fields{