{"action":"opened","issue":{"url":"https://api.github.com/repos/hw-cookbooks/chef-server-populator/issues/64","labels_url":"https://api.github.com/repos/hw-cookbooks/chef-server-populator/issues/64/labels{/name}","comments_url":"https://api.github.com/repos/hw-cookbooks/chef-server-populator/issues/64/comments","events_url":"https://api.github.com/repos/hw-cookbooks/chef-server-populator/issues/64/events","html_url":"https://github.com/hw-cookbooks/chef-server-populator/issues/64","id":114062711,"number":64,"title":"Version evaluating to 0.0, causing the wrong commands to run","user":{"login":"adam-carbone","id":5400020,"avatar_url":"https://avatars.githubusercontent.com/u/5400020?v=3","gravatar_id":"","url":"https://api.github.com/users/adam-carbone","html_url":"https://github.com/adam-carbone","followers_url":"https://api.github.com/users/adam-carbone/followers","following_url":"https://api.github.com/users/adam-carbone/following{/other_user}","gists_url":"https://api.github.com/users/adam-carbone/gists{/gist_id}","starred_url":"https://api.github.com/users/adam-carbone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adam-carbone/subscriptions","organizations_url":"https://api.github.com/users/adam-carbone/orgs","repos_url":"https://api.github.com/users/adam-carbone/repos","events_url":"https://api.github.com/users/adam-carbone/events{/privacy}","received_events_url":"https://api.github.com/users/adam-carbone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-29T14:34:24Z","updated_at":"2015-10-29T14:34:24Z","closed_at":null,"body":"node['chef-server'][:version].to_f is used in the recipes to determine whether or not it is running in a chef server >= 12.1. This determines which commands are run when creating users, clients, organizations. I have an issue where the --public-key is not being passed in the command so the public key is not being used. \r\n\r\nI'm willing to do the work to fix the issue if you can point me in the direction as to where the node['chef-server'][:version] is being set! \r\n\r\nlogging from inside the recipe \r\nChef-version: 0.0\r\nAdd client key command 'chef-server-ctl add-client-key lmid acarbone-dev /var/chef/cache/acarbone-dev.pub --key-name populator'\r\n"}}