File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -487,9 +487,13 @@ func (w *windowsMDMBitlockerConfigFetcher) attemptBitlockerEncryption(notifs fle
487
487
// Otherwise, using the real one
488
488
fn = bitlocker .EncryptVolume
489
489
}
490
+
491
+ // Encryption operation is performed here, err will be captured if any
492
+ // Error will be returned if the encryption operation failed after sending it to Fleet Server
490
493
recoveryKey , err := fn (targetVolume )
491
494
492
495
// Getting Bitlocker encryption operation error message if any
496
+ // This is going to be sent to Fleet Server
493
497
bitlockerError := ""
494
498
if err != nil {
495
499
bitlockerError = err .Error ()
@@ -507,6 +511,8 @@ func (w *windowsMDMBitlockerConfigFetcher) attemptBitlockerEncryption(notifs fle
507
511
return
508
512
}
509
513
514
+ // This is the error status of the Bitlocker encryption operation
515
+ // it is returned here after sending the result to Fleet Server
510
516
if err != nil {
511
517
log .Error ().Err (err ).Msg ("failed to encrypt the volume" )
512
518
return
You can’t perform that action at this time.
0 commit comments