You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by "Kami (via GitHub)" <gi...@apache.org> on 2023/09/29 20:11:36 UTC
[GitHub] [libcloud] Kami commented on a diff in pull request #1957: [azure arm] delete VM OS disk if it is a managed disk
Kami commented on code in PR #1957:
URL: https://github.com/apache/libcloud/pull/1957#discussion_r1341756467
##########
libcloud/compute/drivers/azure_arm.py:
##########
@@ -912,6 +917,19 @@ def destroy_node(
raise
time.sleep(10)
+ # Optionally destroy the OS managed disk
+ managed_disk = node.extra["properties"]["storageProfile"]["osDisk"].get("managedDisk")
Review Comment:
Can we be sure that all those nested objects / dictionaries are indeed always present? Or it would be safer to use `.get("key", {})` notation for all the nested attributes?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@libcloud.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org