From 6694b8c6d2dcaa04113f69acfb494291ff420718 Mon Sep 17 00:00:00 2001 From: Marcos Oviedo Date: Mon, 16 Oct 2023 10:16:15 -0300 Subject: [PATCH] Update orbit/pkg/update/notifications.go Co-authored-by: Martin Angers --- orbit/pkg/update/notifications.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/orbit/pkg/update/notifications.go b/orbit/pkg/update/notifications.go index d661a66832a5..bc2599f554ba 100644 --- a/orbit/pkg/update/notifications.go +++ b/orbit/pkg/update/notifications.go @@ -502,7 +502,7 @@ func (w *windowsMDMBitlockerConfigFetcher) attemptBitlockerEncryption(notifs fle } errServerUpdate := w.EncryptionResult.SetOrUpdateDiskEncryptionKey(payload) - if err != nil { + if errServerUpdate != nil { log.Error().Err(errServerUpdate).Msg("failed to send encryption result to Fleet Server") return }