Skip to content

Commit 1470557

Browse files
committed
fix logic bug in case of only one encrypted volume type
1 parent 900d8de commit 1470557

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ResourceManager/Compute/Commands.Compute/Extension/AzureDiskEncryption/GetAzureDiskEncryptionStatus.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ public override void ExecuteCmdlet()
514514

515515
// retrieve encryption state using per-disk instance status and report if successful
516516
AzureDiskEncryptionStatusContext encryptionStatus = GetStatusFromInstanceView();
517-
if (encryptionStatus != null && !(encryptionStatus.OsVolumeEncrypted==EncryptionStatus.Unknown || encryptionStatus.DataVolumesEncrypted==EncryptionStatus.Unknown))
517+
if (encryptionStatus != null && (encryptionStatus.OsVolumeEncrypted!=EncryptionStatus.Unknown || encryptionStatus.DataVolumesEncrypted!=EncryptionStatus.Unknown))
518518
{
519519
encryptionStatus.ProgressMessage = progressMessage;
520520
WriteObject(encryptionStatus);

0 commit comments

Comments
 (0)