Skip to content

Commit

Permalink
Fixing issue with Orbit not sending bitlocker error
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosd4h committed Oct 13, 2023
1 parent bcb70fa commit c0426ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions orbit/changes/14546-orbit-not-reporting-bitlocker-errors
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Orbit is now properly reporting Bitlocker encryption errors to Fleet server
6 changes: 3 additions & 3 deletions orbit/pkg/update/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -501,14 +501,14 @@ func (w *windowsMDMBitlockerConfigFetcher) attemptBitlockerEncryption(notifs fle
ClientError: bitlockerError,
}

err = w.EncryptionResult.SetOrUpdateDiskEncryptionKey(payload)
if err != nil {
log.Error().Err(err).Msg("failed to encrypt the volume")
log.Error().Err(err).Msg("failed to send encryption result to Fleet Server")
return
}

err = w.EncryptionResult.SetOrUpdateDiskEncryptionKey(payload)
if err != nil {
log.Error().Err(err).Msg("failed to send encryption result to Fleet Server")
log.Error().Err(err).Msg("failed to encrypt the volume")
return
}

Expand Down

0 comments on commit c0426ff

Please sign in to comment.