fix for managed disk facts (#46021)

This commit is contained in:
Zim Kalinowski 2018-09-26 00:48:22 +08:00 committed by GitHub
parent f1038a5c05
commit 6056b89675
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -157,7 +157,7 @@ def managed_disk_to_dict(managed_disk):
source_resource_uri=create_data.source_resource_id,
disk_size_gb=managed_disk.disk_size_gb,
os_type=managed_disk.os_type.value if managed_disk.os_type else None,
storage_account_type=managed_disk.sku.name.value,
storage_account_type=managed_disk.sku.name.value if managed_disk.sku else None,
managed_by=managed_disk.managed_by
)