c-w commented on a change in pull request #1278: [LIBCLOUD-1037] Add Azurite 
support for Azure Blob Storage driver
URL: https://github.com/apache/libcloud/pull/1278#discussion_r288575999
 
 

 ##########
 File path: libcloud/storage/drivers/azure_blobs.py
 ##########
 @@ -214,8 +237,9 @@ def _xml_to_container(self, node):
             'meta_data': {}
         }
 
-        for meta in list(metadata):
-            extra['meta_data'][meta.tag] = meta.text
+        if metadata:
+            for meta in list(metadata):
+                extra['meta_data'][meta.tag] = meta.text
 
 Review comment:
   Leaving as-is since it's not a required part of this fix.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to