Skip to content

Commit 7b66984

Browse files
committed
convert uuid to str for json serialization
1 parent e2fc2ab commit 7b66984

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/azure-cli/azure/cli/command_modules/vm/disk_encryption.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def encrypt_vm(cmd, resource_group_name, vm_name, # pylint: disable=too-many-lo
208208
'EncryptionOperation': 'EnableEncryption' if not encrypt_format_all else 'EnableEncryptionFormatAll',
209209
'KeyEncryptionKeyURL': key_encryption_key,
210210
'KeyEncryptionAlgorithm': key_encryption_algorithm,
211-
'SequenceVersion': sequence_version,
211+
'SequenceVersion': str(sequence_version),
212212
}
213213
if use_new_ade:
214214
public_config.update({
@@ -334,7 +334,7 @@ def decrypt_vm(cmd, resource_group_name, vm_name, volume_type=None, force=False)
334334
public_config = {
335335
'VolumeType': volume_type,
336336
'EncryptionOperation': 'DisableEncryption',
337-
'SequenceVersion': sequence_version,
337+
'SequenceVersion': str(sequence_version),
338338
}
339339

340340
from .operations.vm_extension import VMExtensionCreate

0 commit comments

Comments
 (0)