{"action":"created","issue":{"url":"https://api.github.com/repos/higanworks/knife-zero/issues/33","labels_url":"https://api.github.com/repos/higanworks/knife-zero/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/higanworks/knife-zero/issues/33/comments","events_url":"https://api.github.com/repos/higanworks/knife-zero/issues/33/events","html_url":"https://github.com/higanworks/knife-zero/issues/33","id":87047303,"number":33,"title":"Assume a default query key when none provided in `knife zero chef_client QUERY`","user":{"login":"patcon","id":305339,"avatar_url":"https://avatars.githubusercontent.com/u/305339?v=3","gravatar_id":"","url":"https://api.github.com/users/patcon","html_url":"https://github.com/patcon","followers_url":"https://api.github.com/users/patcon/followers","following_url":"https://api.github.com/users/patcon/following{/other_user}","gists_url":"https://api.github.com/users/patcon/gists{/gist_id}","starred_url":"https://api.github.com/users/patcon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patcon/subscriptions","organizations_url":"https://api.github.com/users/patcon/orgs","repos_url":"https://api.github.com/users/patcon/repos","events_url":"https://api.github.com/users/patcon/events{/privacy}","received_events_url":"https://api.github.com/users/patcon/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/higanworks/knife-zero/labels/cheer_for_core","name":"cheer_for_core","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-06-10T17:36:00Z","updated_at":"2015-06-16T06:04:15Z","closed_at":null,"body":"It seems that even when there's a `node/example.com.json`, `knife zero chef_client example.com` doesn't work, and instead, we must use `knife zero chef_client name:example.com`\r\n\r\nWould be great if `knife-zero` assumed a default key, either `name` or `fqdn` (I prefer \"name\", as it should intuitiveless always match the json filename in `nodes/`. Yes, in the current knife-zero this is also the fqdn, but this need not necessarily be the case in the future)"},"comment":{"url":"https://api.github.com/repos/higanworks/knife-zero/issues/comments/112305063","html_url":"https://github.com/higanworks/knife-zero/issues/33#issuecomment-112305063","issue_url":"https://api.github.com/repos/higanworks/knife-zero/issues/33","id":112305063,"user":{"login":"sawanoboly","id":272388,"avatar_url":"https://avatars.githubusercontent.com/u/272388?v=3","gravatar_id":"","url":"https://api.github.com/users/sawanoboly","html_url":"https://github.com/sawanoboly","followers_url":"https://api.github.com/users/sawanoboly/followers","following_url":"https://api.github.com/users/sawanoboly/following{/other_user}","gists_url":"https://api.github.com/users/sawanoboly/gists{/gist_id}","starred_url":"https://api.github.com/users/sawanoboly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sawanoboly/subscriptions","organizations_url":"https://api.github.com/users/sawanoboly/orgs","repos_url":"https://api.github.com/users/sawanoboly/repos","events_url":"https://api.github.com/users/sawanoboly/events{/privacy}","received_events_url":"https://api.github.com/users/sawanoboly/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T06:04:15Z","updated_at":"2015-06-16T06:04:15Z","body":"@patcon great!\r\n\r\nI've add below to Gemfile and tested it.\r\n\r\n```\r\ngem 'chef', github: 'patcon/chef', ref: '3526-fuzz-ssh-query'\r\n```\r\n\r\nThere are node which is named knife-zero02. It have IP `133.242.xxx.xxx`.\r\n\r\n```\r\n$ bundle exec knife node show knife-zero02\r\nNode Name:   knife-zero02\r\nEnvironment: _default\r\nFQDN:        \r\nIP:          133.242.xxx.xxx\r\nRun List:    \r\nRoles:       \r\nRecipes:     \r\nPlatform:    ubuntu 14.04\r\nTags:        \r\n```\r\n\r\nIn this case,  I should pass an ipaddress to fuzzy_query.\r\n\r\n```\r\n$ bundle exec knife zero converge 133.242.xxx.xxx -a ipaddress\r\n133.242.xxx.xxx sudo: unable to resolve host knife-zero02\r\n133.242.xxx.xxx Starting Chef Client, version 12.3.0\r\n133.242.xxx.xxx resolving cookbooks for run list: []\r\n133.242.xxx.xxx Synchronizing Cookbooks:\r\n133.242.xxx.xxx Compiling Cookbooks...\r\n133.242.xxx.xxx [2015-06-16T15:01:09+09:00] WARN: Node knife-zero02 has an empty run list.\r\n133.242.xxx.xxx Converging 0 resources\r\n133.242.xxx.xxx [2015-06-16T15:01:09+09:00] WARN: Could not find whitelist attribute fqdn/.\r\n133.242.xxx.xxx [2015-06-16T15:01:09+09:00] WARN: Could not find whitelist attribute cloud.\r\n133.242.xxx.xxx \r\n133.242.xxx.xxx Running handlers:\r\n133.242.xxx.xxx Running handlers complete\r\n133.242.xxx.xxx Chef Client finished, 0/0 resources updated in 1.760414153 seconds\r\n```\r\n\r\nHow about include name to fuzzy target?\r\n\r\n```\r\n$ bundle exec knife zero converge knife-zero02 -a ipaddress\r\nFATAL: No nodes returned from search!\r\n```\r\n"}}