Skip to content

Commit 2df9f37

Browse files
committed
Update code
1 parent 89eb9c9 commit 2df9f37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2174,7 +2174,7 @@ def process_image_create_namespace(cmd, namespace):
21742174

21752175
if source_from_vm:
21762176
# pylint: disable=no-member
2177-
namespace.os_type = vm_info.get('storageProfile', {}).get('osDisk', {}).get('osType', '')
2177+
namespace.os_type = vm_info.get('storageProfile', {}).get('osDisk', {}).get('osType')
21782178
namespace.source_virtual_machine = res_id
21792179
if namespace.data_disk_sources:
21802180
raise CLIError("'--data-disk-sources' is not allowed when capturing "

0 commit comments

Comments
 (0)