{"action":"opened","issue":{"url":"https://api.github.com/repos/Azure/azure-cli/issues/4344","repository_url":"https://api.github.com/repos/Azure/azure-cli","labels_url":"https://api.github.com/repos/Azure/azure-cli/issues/4344/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-cli/issues/4344/comments","events_url":"https://api.github.com/repos/Azure/azure-cli/issues/4344/events","html_url":"https://github.com/Azure/azure-cli/issues/4344","id":254026569,"number":4344,"title":"\"az keyvault secret download\" command threw an error.","user":{"login":"fletchsod-developer","id":5113337,"avatar_url":"https://avatars0.githubusercontent.com/u/5113337?v=4","gravatar_id":"","url":"https://api.github.com/users/fletchsod-developer","html_url":"https://github.com/fletchsod-developer","followers_url":"https://api.github.com/users/fletchsod-developer/followers","following_url":"https://api.github.com/users/fletchsod-developer/following{/other_user}","gists_url":"https://api.github.com/users/fletchsod-developer/gists{/gist_id}","starred_url":"https://api.github.com/users/fletchsod-developer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fletchsod-developer/subscriptions","organizations_url":"https://api.github.com/users/fletchsod-developer/orgs","repos_url":"https://api.github.com/users/fletchsod-developer/repos","events_url":"https://api.github.com/users/fletchsod-developer/events{/privacy}","received_events_url":"https://api.github.com/users/fletchsod-developer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-30T14:46:49Z","updated_at":"2017-08-30T14:46:49Z","closed_at":null,"author_association":"NONE","body":"### Description\r\n**Outline the issue here:**\r\n\r\nCommand line as per documentation.\r\n\r\n     az keyvault secret download --file secret.foo --name <<foo>> --vault-name <<foo>>\r\n\r\nError response\r\n\r\n'NoneType' object has no attribute \"get\"\r\nTraceback (most recent call last):\r\n  File \"/opt/az/lib/python3.6/site-packages/azure/cli/main.py\", line 36, in main\r\ncmd_result = APPLICATION.execute(args)\r\n  File \"/opt/az/lib/python3.6/site-packages/azure/cli/core/application.py\", line 211, in execute\r\n  result = expanded_arg.func(params)\r\n  File \"/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py\", line 351, in __call__\r\n  return self.handler(*args, **kwargs)\r\n  File \"/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/keyvault/_command_type.py\", line 69, in _execute_command\r\n  result = op(client, **kwargs)\r\n  File \"/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/keyvault/custom.py\", line 534, in download_secret\r\n  encoding = encoding or secret.tags.get('file-encoding', 'utf-8')\r\n  AttributeError: 'NoneType' object has no attribute 'get'\r\n\r\n`get` attribute is not supported in Azure-CLI for `az keyvault secret download` command.\r\n\r\n---\r\n\r\n### Environment summary\r\n\r\n**Install Method:** How did you install the CLI? (e.g. pip, interactive script, apt-get, Docker, MSI, nightly)  \r\nAnswer here:  Microsoft Azure Online (MSI Installer)\r\n\r\n**CLI Version:** What version of the CLI and modules are installed? (Use `az --version`)  \r\nAnswer here: 2.0.14\r\n\r\n**OS Version:** What OS and version are you using?  \r\nAnswer here: Windows 10, using Ubuntu & Bash\r\n\r\n**Shell Type:** What shell are you using? (e.g. bash, cmd.exe, Bash on Windows)  \r\nAnswer here: Bash in Ubuntu\r\n\r\n"}}
{"actor":{"display_login":"fletchsod-developer"}}