{"action":"created","issue":{"url":"https://api.github.com/repos/bachya/lp-vault-manager/issues/18","repository_url":"https://api.github.com/repos/bachya/lp-vault-manager","labels_url":"https://api.github.com/repos/bachya/lp-vault-manager/issues/18/labels{/name}","comments_url":"https://api.github.com/repos/bachya/lp-vault-manager/issues/18/comments","events_url":"https://api.github.com/repos/bachya/lp-vault-manager/issues/18/events","html_url":"https://github.com/bachya/lp-vault-manager/issues/18","id":147301127,"number":18,"title":"lpvs KeyError: u'hostname'","user":{"login":"bradleyhurley","id":7111357,"avatar_url":"https://avatars.githubusercontent.com/u/7111357?v=3","gravatar_id":"","url":"https://api.github.com/users/bradleyhurley","html_url":"https://github.com/bradleyhurley","followers_url":"https://api.github.com/users/bradleyhurley/followers","following_url":"https://api.github.com/users/bradleyhurley/following{/other_user}","gists_url":"https://api.github.com/users/bradleyhurley/gists{/gist_id}","starred_url":"https://api.github.com/users/bradleyhurley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradleyhurley/subscriptions","organizations_url":"https://api.github.com/users/bradleyhurley/orgs","repos_url":"https://api.github.com/users/bradleyhurley/repos","events_url":"https://api.github.com/users/bradleyhurley/events{/privacy}","received_events_url":"https://api.github.com/users/bradleyhurley/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-11T02:56:54Z","updated_at":"2016-04-12T01:43:19Z","closed_at":null,"body":"\r\n`[ERROR: alfred.workflow.input.scriptfilter] Code 1: 22:26:56 workflow.py:1386 DEBUG    Reading settings from `/Users/brad.hurley/Library/Application Support/Alfred 2/Workflow Data/com.bachya.lpvm/settings.json` ...\r\n22:26:56 workflow.py:1960 DEBUG    Workflow version : 4.2.0\r\n22:26:56 lpvs_query.py:30 DEBUG    Query arguments: [u'search-vault-for-query', u't']\r\n22:26:56 lpvs_query.py:38 DEBUG    Parsed command: search-vault-for-query\r\n22:26:56 lpvs_query.py:39 DEBUG    Parsed argument: t\r\n22:26:56 lpvs_query.py:40 DEBUG    Parsed delimiter: >\r\n22:26:56 lpvs_query.py:41 DEBUG    Parsed query: search-vault-for-query t\r\n22:26:56 lpvs_query.py:53 DEBUG    Executing command: search-vault-for-query\r\n22:26:56 workflow.py:1609 DEBUG    Loading cached data from : /Users/brad.hurley/Library/Caches/com.runningwithcrayons.Alfred-2/Workflow Data/com.bachya.lpvm/vault_items.cpickle\r\n22:26:56 workflow.py:1978 ERROR    u'hostname'\r\nTraceback (most recent call last):\r\n  File \"/Users/brad.hurley/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.6446AD3B-324D-403F-B0D8-7BE4434ECE5C/workflow/workflow.py\", line 1971, in run\r\n    func(self)\r\n  File \"lpvs_query.py\", line 55, in main\r\n    output_query_vault_results(ap)\r\n  File \"lpvs_query.py\", line 151, in output_query_vault_results\r\n    results = util.search_vault_for_query(ap.arg)\r\n  File \"/Users/brad.hurley/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.6446AD3B-324D-403F-B0D8-7BE4434ECE5C/utilities.py\", line 221, in search_vault_for_query\r\n    match_on=MATCH_ALL ^ MATCH_ALLCHARS\r\n  File \"/Users/brad.hurley/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.6446AD3B-324D-403F-B0D8-7BE4434ECE5C/workflow/workflow.py\", line 1791, in filter\r\n    value = key(item).strip()\r\n  File \"/Users/brad.hurley/Library/Application Support/Alfred 2/Alfred.alfredpreferences/workflows/user.workflow.6446AD3B-324D-403F-B0D8-7BE4434ECE5C/utilities.py\", line 199, in search_item_fields\r\n    elements.append(item['hostname'])\r\nKeyError: u'hostname'\r\n22:26:56 workflow.py:1996 DEBUG    Workflow finished in 0.019 seconds.`\r\n\r\nWhen I run `lpass ls` the results look as I would expect.\r\n\r\nI added a debug statement to `utilities.search_item_fields` and all of the urls are populated, but the item list does not contain any hostnames."},"comment":{"url":"https://api.github.com/repos/bachya/lp-vault-manager/issues/comments/208659889","html_url":"https://github.com/bachya/lp-vault-manager/issues/18#issuecomment-208659889","issue_url":"https://api.github.com/repos/bachya/lp-vault-manager/issues/18","id":208659889,"user":{"login":"bradleyhurley","id":7111357,"avatar_url":"https://avatars.githubusercontent.com/u/7111357?v=3","gravatar_id":"","url":"https://api.github.com/users/bradleyhurley","html_url":"https://github.com/bradleyhurley","followers_url":"https://api.github.com/users/bradleyhurley/followers","following_url":"https://api.github.com/users/bradleyhurley/following{/other_user}","gists_url":"https://api.github.com/users/bradleyhurley/gists{/gist_id}","starred_url":"https://api.github.com/users/bradleyhurley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradleyhurley/subscriptions","organizations_url":"https://api.github.com/users/bradleyhurley/orgs","repos_url":"https://api.github.com/users/bradleyhurley/repos","events_url":"https://api.github.com/users/bradleyhurley/events{/privacy}","received_events_url":"https://api.github.com/users/bradleyhurley/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T01:43:19Z","updated_at":"2016-04-12T01:43:19Z","body":"In the event that someone else has this issue it is caused by upgrading lastpass-cli to version 0.9.0.\r\n\r\nYou can modify `/usr/local/Library/Formula/lastpass-cli.rb` to brew install version 0.8.1.\r\n\r\nUpdare the version URL and the sha256 values.\r\n`class LastpassCli < Formula\r\n  desc \"LastPass command-line interface tool\"\r\n  homepage \"https://github.com/lastpass/lastpass-cli\"\r\n  url \"https://github.com/lastpass/lastpass-cli/archive/v0.8.1.tar.gz\"\r\n  sha256 \"b57ee688d9e9877f25a0ef566cff9a8c364f28e26c54b3c11eb338468cddfeb2\"\r\n  head \"https://github.com/lastpass/lastpass-cli.git\"\r\n\r\n  bottle do\r\n    cellar :any\r\n    sha256 \"b57ee688d9e9877f25a0ef566cff9a8c364f28e26c54b3c11eb338468cddfeb2\" => :el_capitan\r\n    sha256 \"e8ca9db904d637852830910ff8905c4be206a7b15ebbf04c0e1ead5073ea9642\" => :yosemite\r\n    sha256 \"bf2a47f74b67df21875b3a01e87acad4d5e3d69ccff79987d73ca56e8020134a\" => :mavericks\r\n  end`"}}