Skip to content

Commit 69c33d0

Browse files
authored
Merge pull request Azure#3105 from krkhan/disable_regression_fix
Regression fix for Disable-AzureRmVMDiskEncryption, add null-check for VolumeType
2 parents d689f28 + 745be58 commit 69c33d0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ public override void ExecuteCmdlet()
269269
// +---------+---------------+----------------------------+
270270

271271
if (OperatingSystemTypes.Windows.Equals(currentOSType) &&
272+
!string.IsNullOrEmpty(VolumeType) &&
272273
VolumeType.Equals(AzureDiskEncryptionExtensionContext.VolumeTypeData, StringComparison.InvariantCultureIgnoreCase))
273274
{
274275
var result = Mapper.Map<PSAzureOperationResponse>(opExt);

0 commit comments

Comments
 (0)