Skip to content

Commit 30b0a69

Browse files
author
Kamran Khan
committed
Revert "On Windows, VolumeType should default to Data for disable"
This reverts commit b4550ef.
1 parent b4550ef commit 30b0a69

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -262,15 +262,14 @@ public override void ExecuteCmdlet()
262262
// +---------+---------------+----------------------------+
263263
// | Windows | OS | Yes |
264264
// | Windows | Data | No |
265-
// | Windows | Not Specified | No |
265+
// | Windows | Not Specified | Yes |
266266
// | Linux | OS | N/A |
267267
// | Linux | Data | Yes |
268268
// | Linux | Not Specified | N/A |
269269
// +---------+---------------+----------------------------+
270270

271271
if (OperatingSystemTypes.Windows.Equals(currentOSType) &&
272-
(string.IsNullOrWhiteSpace(VolumeType) ||
273-
VolumeType.Equals(AzureDiskEncryptionExtensionContext.VolumeTypeData, StringComparison.InvariantCultureIgnoreCase)))
272+
VolumeType.Equals(AzureDiskEncryptionExtensionContext.VolumeTypeData, StringComparison.InvariantCultureIgnoreCase))
274273
{
275274
var result = Mapper.Map<PSAzureOperationResponse>(opExt);
276275
WriteObject(result);

0 commit comments

Comments
 (0)