mirror of
https://github.com/siderolabs/talos.git
synced 2026-05-05 12:26:21 +02:00
fix: wrong slot of encryption key was logged
During removal of encryption key, we logged slot of current key instead of the removed key. Signed-off-by: Mateusz Urbanek <mateusz.urbanek@siderolabs.com>
This commit is contained in:
parent
015081c768
commit
be58eafaba
@ -250,7 +250,7 @@ func (h *Handler) syncKeys(ctx context.Context, logger *zap.Logger, path string,
|
||||
|
||||
failedSyncs = append(failedSyncs, fmt.Sprintf("error removing key slot %s: %s", slot, err))
|
||||
} else {
|
||||
logger.Info("removed encryption key", zap.Int("slot", k.Slot))
|
||||
logger.Info("removed encryption key", zap.Int("slot", int(s)))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user