{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-storage-python/issues/192","repository_url":"https://api.github.com/repos/Azure/azure-storage-python","labels_url":"https://api.github.com/repos/Azure/azure-storage-python/issues/192/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-storage-python/issues/192/comments","events_url":"https://api.github.com/repos/Azure/azure-storage-python/issues/192/events","html_url":"https://github.com/Azure/azure-storage-python/issues/192","id":162744887,"number":192,"title":"Blob objects returned by list_blobs has None metadata properties","user":{"login":"smereczynski","id":705653,"avatar_url":"https://avatars.githubusercontent.com/u/705653?v=3","gravatar_id":"","url":"https://api.github.com/users/smereczynski","html_url":"https://github.com/smereczynski","followers_url":"https://api.github.com/users/smereczynski/followers","following_url":"https://api.github.com/users/smereczynski/following{/other_user}","gists_url":"https://api.github.com/users/smereczynski/gists{/gist_id}","starred_url":"https://api.github.com/users/smereczynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smereczynski/subscriptions","organizations_url":"https://api.github.com/users/smereczynski/orgs","repos_url":"https://api.github.com/users/smereczynski/repos","events_url":"https://api.github.com/users/smereczynski/events{/privacy}","received_events_url":"https://api.github.com/users/smereczynski/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-28T17:45:20Z","updated_at":"2016-06-28T18:19:33Z","closed_at":null,"body":"azure-storage==0.32.0\r\nPython 3.4.3\r\nrequests==2.10.0\r\n\r\nIf You use:\r\n\r\n```\r\nfrom azure.storage import CloudStorageAccount\r\nACC = CloudStorageAccount(account_name, account_key)\r\nSRV = ACC.create_block_blob_service()\r\nGEN = SRV.list_blobs(container_name)\r\nfor blob in GEN:\r\n    print(blob.metadata)\r\n```\r\n\r\nto get list of blobs in container and their metadata, You will have:\r\n\r\nNone\r\nNone\r\nNone\r\netc...\r\n\r\nBut if You use:\r\n\r\n```\r\nblob0 = SRV.get_blob_properties(container_name, blob_name)\r\nprint(blob0)\r\n```\r\n\r\nEverything is OK:\r\n\r\n{'val1': 'foo', 'val2': 'blah'}\r\n\r\nIn both cases we have azure.storage.blob.models.Blob object so there should be 'metadata' property as in Model."},"comment":{"url":"https://api.github.com/repos/Azure/azure-storage-python/issues/comments/229136653","html_url":"https://github.com/Azure/azure-storage-python/issues/192#issuecomment-229136653","issue_url":"https://api.github.com/repos/Azure/azure-storage-python/issues/192","id":229136653,"user":{"login":"erezvani1529","id":7978554,"avatar_url":"https://avatars.githubusercontent.com/u/7978554?v=3","gravatar_id":"","url":"https://api.github.com/users/erezvani1529","html_url":"https://github.com/erezvani1529","followers_url":"https://api.github.com/users/erezvani1529/followers","following_url":"https://api.github.com/users/erezvani1529/following{/other_user}","gists_url":"https://api.github.com/users/erezvani1529/gists{/gist_id}","starred_url":"https://api.github.com/users/erezvani1529/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erezvani1529/subscriptions","organizations_url":"https://api.github.com/users/erezvani1529/orgs","repos_url":"https://api.github.com/users/erezvani1529/repos","events_url":"https://api.github.com/users/erezvani1529/events{/privacy}","received_events_url":"https://api.github.com/users/erezvani1529/received_events","type":"User","site_admin":false},"created_at":"2016-06-28T18:19:33Z","updated_at":"2016-06-28T18:19:33Z","body":"Hi @smereczynski,\r\n\r\nList blobs by default does not return metadata unless you specify \"Metadata\" in the \"include\" parameter when calling the method. Have you tried adding this parameter to your calls? \r\n"}}
{"actor":{"display_login":"erezvani1529"}}