{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef/issues/3419","labels_url":"https://api.github.com/repos/chef/chef/issues/3419/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef/issues/3419/comments","events_url":"https://api.github.com/repos/chef/chef/issues/3419/events","html_url":"https://github.com/chef/chef/pull/3419","id":79626198,"number":3419,"title":"Fix cli issue with unset chef_repo_path","user":{"login":"scotthain","id":2817921,"avatar_url":"https://avatars.githubusercontent.com/u/2817921?v=3","gravatar_id":"","url":"https://api.github.com/users/scotthain","html_url":"https://github.com/scotthain","followers_url":"https://api.github.com/users/scotthain/followers","following_url":"https://api.github.com/users/scotthain/following{/other_user}","gists_url":"https://api.github.com/users/scotthain/gists{/gist_id}","starred_url":"https://api.github.com/users/scotthain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scotthain/subscriptions","organizations_url":"https://api.github.com/users/scotthain/orgs","repos_url":"https://api.github.com/users/scotthain/repos","events_url":"https://api.github.com/users/scotthain/events{/privacy}","received_events_url":"https://api.github.com/users/scotthain/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef/chef/labels/in%20progress","name":"in progress","color":"ededed"},{"url":"https://api.github.com/repos/chef/chef/labels/Signed%20CLA","name":"Signed CLA","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-22T21:55:55Z","updated_at":"2015-05-22T22:05:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/chef/chef/pulls/3419","html_url":"https://github.com/chef/chef/pull/3419","diff_url":"https://github.com/chef/chef/pull/3419.diff","patch_url":"https://github.com/chef/chef/pull/3419.patch"},"body":"Fixes issue for when environment variable is not set and chef_repo_path expects one.\r\n\r\ntl;dr - if you have something like this in a config.rb/knife.rb:\r\n```chef_repo_path ENV['SOMETHING']```\r\nand $SOMETHING is not set, when running ```chef-client -z``` it will throw a wonderful error like so:\r\n```[2015-05-22T13:11:58-07:00] FATAL: NoMethodError: undefined method `map' for nil:NilClass```\r\nWhich gives you nothing to go on. This issues a warning and resets the config to default value."},"comment":{"url":"https://api.github.com/repos/chef/chef/issues/comments/104786491","html_url":"https://github.com/chef/chef/pull/3419#issuecomment-104786491","issue_url":"https://api.github.com/repos/chef/chef/issues/3419","id":104786491,"user":{"login":"scotthain","id":2817921,"avatar_url":"https://avatars.githubusercontent.com/u/2817921?v=3","gravatar_id":"","url":"https://api.github.com/users/scotthain","html_url":"https://github.com/scotthain","followers_url":"https://api.github.com/users/scotthain/followers","following_url":"https://api.github.com/users/scotthain/following{/other_user}","gists_url":"https://api.github.com/users/scotthain/gists{/gist_id}","starred_url":"https://api.github.com/users/scotthain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scotthain/subscriptions","organizations_url":"https://api.github.com/users/scotthain/orgs","repos_url":"https://api.github.com/users/scotthain/repos","events_url":"https://api.github.com/users/scotthain/events{/privacy}","received_events_url":"https://api.github.com/users/scotthain/received_events","type":"User","site_admin":false},"created_at":"2015-05-22T22:05:42Z","updated_at":"2015-05-22T22:05:42Z","body":"@danielsdeleo I'd love to see a Chef::Config.validate type method, but that seems like a pretty big refactor and logic crazyness..."}}