{"action":"created","issue":{"url":"https://api.github.com/repos/chef-cookbooks/users/issues/82","labels_url":"https://api.github.com/repos/chef-cookbooks/users/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/chef-cookbooks/users/issues/82/comments","events_url":"https://api.github.com/repos/chef-cookbooks/users/issues/82/events","html_url":"https://github.com/chef-cookbooks/users/pull/82","id":57508660,"number":82,"title":"Create .ssh directories only if keys are published.","user":{"login":"nkadel-skyhook","id":9659660,"avatar_url":"https://avatars.githubusercontent.com/u/9659660?v=3","gravatar_id":"","url":"https://api.github.com/users/nkadel-skyhook","html_url":"https://github.com/nkadel-skyhook","followers_url":"https://api.github.com/users/nkadel-skyhook/followers","following_url":"https://api.github.com/users/nkadel-skyhook/following{/other_user}","gists_url":"https://api.github.com/users/nkadel-skyhook/gists{/gist_id}","starred_url":"https://api.github.com/users/nkadel-skyhook/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nkadel-skyhook/subscriptions","organizations_url":"https://api.github.com/users/nkadel-skyhook/orgs","repos_url":"https://api.github.com/users/nkadel-skyhook/repos","events_url":"https://api.github.com/users/nkadel-skyhook/events{/privacy}","received_events_url":"https://api.github.com/users/nkadel-skyhook/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/chef-cookbooks/users/labels/Signed%20CLA","name":"Signed CLA","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-02-12T19:38:59Z","updated_at":"2016-01-28T04:57:52Z","closed_at":"2016-01-28T04:57:52Z","pull_request":{"url":"https://api.github.com/repos/chef-cookbooks/users/pulls/82","html_url":"https://github.com/chef-cookbooks/users/pull/82","diff_url":"https://github.com/chef-cookbooks/users/pull/82.diff","patch_url":"https://github.com/chef-cookbooks/users/pull/82.patch"},"body":"Creating $HOME/.ssh directories if no SSH keys are published breaks  on read-only, unmounted, or root_squash environments."},"comment":{"url":"https://api.github.com/repos/chef-cookbooks/users/issues/comments/175977340","html_url":"https://github.com/chef-cookbooks/users/pull/82#issuecomment-175977340","issue_url":"https://api.github.com/repos/chef-cookbooks/users/issues/82","id":175977340,"user":{"login":"iennae","id":1592404,"avatar_url":"https://avatars.githubusercontent.com/u/1592404?v=3","gravatar_id":"","url":"https://api.github.com/users/iennae","html_url":"https://github.com/iennae","followers_url":"https://api.github.com/users/iennae/followers","following_url":"https://api.github.com/users/iennae/following{/other_user}","gists_url":"https://api.github.com/users/iennae/gists{/gist_id}","starred_url":"https://api.github.com/users/iennae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iennae/subscriptions","organizations_url":"https://api.github.com/users/iennae/orgs","repos_url":"https://api.github.com/users/iennae/repos","events_url":"https://api.github.com/users/iennae/events{/privacy}","received_events_url":"https://api.github.com/users/iennae/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T04:57:52Z","updated_at":"2016-01-28T04:57:52Z","body":"@nkadel-skyhook thanks for your contribution. I changed this up a little to use a guard versus ruby code. Guards like only_if, and not_if allow the check to occur during the execute phase of the chef run. If we implement this with ruby code, that means that the check would happen during the compile phase which might not be optimum in this case. This will get included in v2.0.3 release of the cookbook."}}