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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to