File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/ResourceManager/Compute/Commands.Compute/Extension/AzureDiskEncryption Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -262,14 +262,15 @@ public override void ExecuteCmdlet()
262
262
// +---------+---------------+----------------------------+
263
263
// | Windows | OS | Yes |
264
264
// | Windows | Data | No |
265
- // | Windows | Not Specified | Yes |
265
+ // | Windows | Not Specified | No |
266
266
// | Linux | OS | N/A |
267
267
// | Linux | Data | Yes |
268
268
// | Linux | Not Specified | N/A |
269
269
// +---------+---------------+----------------------------+
270
270
271
271
if ( OperatingSystemTypes . Windows . Equals ( currentOSType ) &&
272
- VolumeType . Equals ( AzureDiskEncryptionExtensionContext . VolumeTypeData , StringComparison . InvariantCultureIgnoreCase ) )
272
+ ( string . IsNullOrWhiteSpace ( VolumeType ) ||
273
+ VolumeType . Equals ( AzureDiskEncryptionExtensionContext . VolumeTypeData , StringComparison . InvariantCultureIgnoreCase ) ) )
273
274
{
274
275
var result = Mapper . Map < PSAzureOperationResponse > ( opExt ) ;
275
276
WriteObject ( result ) ;
You can’t perform that action at this time.
0 commit comments