{"action":"created","issue":{"url":"https://api.github.com/repos/chef/chef-dk/issues/1431","repository_url":"https://api.github.com/repos/chef/chef-dk","labels_url":"https://api.github.com/repos/chef/chef-dk/issues/1431/labels{/name}","comments_url":"https://api.github.com/repos/chef/chef-dk/issues/1431/comments","events_url":"https://api.github.com/repos/chef/chef-dk/issues/1431/events","html_url":"https://github.com/chef/chef-dk/issues/1431","id":266694053,"number":1431,"title":"--json-attributes causes JSON::ParserError from Chef DK prompt","user":{"login":"tpetchel","id":7142397,"avatar_url":"https://avatars2.githubusercontent.com/u/7142397?v=4","gravatar_id":"","url":"https://api.github.com/users/tpetchel","html_url":"https://github.com/tpetchel","followers_url":"https://api.github.com/users/tpetchel/followers","following_url":"https://api.github.com/users/tpetchel/following{/other_user}","gists_url":"https://api.github.com/users/tpetchel/gists{/gist_id}","starred_url":"https://api.github.com/users/tpetchel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tpetchel/subscriptions","organizations_url":"https://api.github.com/users/tpetchel/orgs","repos_url":"https://api.github.com/users/tpetchel/repos","events_url":"https://api.github.com/users/tpetchel/events{/privacy}","received_events_url":"https://api.github.com/users/tpetchel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-10-19T01:39:13Z","updated_at":"2017-10-19T01:46:25Z","closed_at":null,"author_association":"MEMBER","body":"# Description\r\n\r\n`knife` commands that use `--json-attributes` fail with JSON::ParserError from a Chef DK prompt but succeed from a standard PowerShell prompt. For example:\r\n\r\n```\r\n$ knife bootstrap windows winrm 54.84.99.135 --winrm-user Administrator --winrm-password 'masked' --json-attributes $public_ip\r\n```\r\n\r\nSee this Gist for a side-by-side comparison:\r\n\r\nhttps://gist.github.com/tpetchel/7ee1687f570769938c1886a81b362cc6\r\n\r\n**Impact:** We demonstrate the use of `--json-attributes` on Learn Chef ([example](https://learn.chef.io/modules/manage-a-node-chef-server/windows/hosted/bootstrap-your-node)). We also encourage the use of the Chef DK command prompt. \r\n\r\n# ChefDK Version\r\n\r\n```\r\n$ chef --version\r\nChef Development Kit Version: 2.0.28\r\nchef-client version: 13.2.20\r\ndelivery version: master (17c1b0fed9be4c70f69091a6d21a4cbf0df60a23)\r\nberks version: 6.2.0\r\nkitchen version: 1.16.0\r\ninspec version: 1.31.1\r\n```\r\n\r\n# Platform Version\r\n\r\nWindows 10\r\n\r\n# Replication Case\r\n\r\nSee the above Gist.\r\n\r\n# Stacktrace\r\n\r\nSee the above Gist."},"comment":{"url":"https://api.github.com/repos/chef/chef-dk/issues/comments/337775746","html_url":"https://github.com/chef/chef-dk/issues/1431#issuecomment-337775746","issue_url":"https://api.github.com/repos/chef/chef-dk/issues/1431","id":337775746,"user":{"login":"coderanger","id":128243,"avatar_url":"https://avatars1.githubusercontent.com/u/128243?v=4","gravatar_id":"","url":"https://api.github.com/users/coderanger","html_url":"https://github.com/coderanger","followers_url":"https://api.github.com/users/coderanger/followers","following_url":"https://api.github.com/users/coderanger/following{/other_user}","gists_url":"https://api.github.com/users/coderanger/gists{/gist_id}","starred_url":"https://api.github.com/users/coderanger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/coderanger/subscriptions","organizations_url":"https://api.github.com/users/coderanger/orgs","repos_url":"https://api.github.com/users/coderanger/repos","events_url":"https://api.github.com/users/coderanger/events{/privacy}","received_events_url":"https://api.github.com/users/coderanger/received_events","type":"User","site_admin":false},"created_at":"2017-10-19T01:46:25Z","updated_at":"2017-10-19T01:46:25Z","author_association":"CONTRIBUTOR","body":"Ahh never mind, I see it's not an issue with Chef itself, it's some kind of double quoting problem in the shell?"}}
{"actor":{"display_login":"coderanger"}}