-
Notifications
You must be signed in to change notification settings - Fork 4k
Fix logic bug in Get-AzureRmVMDiskEncryptionStatus #6431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@@ -514,7 +514,7 @@ public override void ExecuteCmdlet() | |||
|
|||
// retrieve encryption state using per-disk instance status and report if successful | |||
AzureDiskEncryptionStatusContext encryptionStatus = GetStatusFromInstanceView(); | |||
if (encryptionStatus != null && !(encryptionStatus.OsVolumeEncrypted==EncryptionStatus.Unknown || encryptionStatus.DataVolumesEncrypted==EncryptionStatus.Unknown)) | |||
if (encryptionStatus != null && (encryptionStatus.OsVolumeEncrypted!=EncryptionStatus.Unknown || encryptionStatus.DataVolumesEncrypted!=EncryptionStatus.Unknown)) | |||
{ | |||
encryptionStatus.ProgressMessage = progressMessage; | |||
WriteObject(encryptionStatus); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert changes to the psm1 file below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reverted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@maddieclayton all checks have passed with the reverted file
This reverts commit 8353869.
721d3aa
Description
Fixes a logic bug in the case of VMs with only one encrypted volume type. In particular, VMs with an OS volume and no data disks that had been encrypted with no AAD parameters.
Checklist
CONTRIBUTING.md
platyPS
module