{"action":"closed","number":23,"pull_request":{"url":"https://api.github.com/repos/chef-solutions/pipeline/pulls/23","id":35433552,"html_url":"https://github.com/chef-solutions/pipeline/pull/23","diff_url":"https://github.com/chef-solutions/pipeline/pull/23.diff","patch_url":"https://github.com/chef-solutions/pipeline/pull/23.patch","issue_url":"https://api.github.com/repos/chef-solutions/pipeline/issues/23","number":23,"state":"closed","locked":false,"title":"Use an attribute to make the chef-client command call the same everywhere","user":{"login":"eherot","id":400447,"avatar_url":"https://avatars.githubusercontent.com/u/400447?v=3","gravatar_id":"","url":"https://api.github.com/users/eherot","html_url":"https://github.com/eherot","followers_url":"https://api.github.com/users/eherot/followers","following_url":"https://api.github.com/users/eherot/following{/other_user}","gists_url":"https://api.github.com/users/eherot/gists{/gist_id}","starred_url":"https://api.github.com/users/eherot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eherot/subscriptions","organizations_url":"https://api.github.com/users/eherot/orgs","repos_url":"https://api.github.com/users/eherot/repos","events_url":"https://api.github.com/users/eherot/events{/privacy}","received_events_url":"https://api.github.com/users/eherot/received_events","type":"User","site_admin":false},"body":"Solves this problem which I was seeing on my system:\r\n\r\n```\r\n+ knife upload roles environments data_bags --chef-repo-path .\r\n+ sudo chef-client\r\nsudo: no tty present and no askpass program specified\r\nBuild step 'Execute shell' marked build as failure\r\nFinished: FAILURE\r\n```","created_at":"2015-05-14T15:46:56Z","updated_at":"2015-06-13T16:55:08Z","closed_at":"2015-06-13T16:55:08Z","merged_at":"2015-06-13T16:55:08Z","merge_commit_sha":"cbe36a056a768736a39f94260ff6e7701dcb1a11","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/chef-solutions/pipeline/pulls/23/commits","review_comments_url":"https://api.github.com/repos/chef-solutions/pipeline/pulls/23/comments","review_comment_url":"https://api.github.com/repos/chef-solutions/pipeline/pulls/comments{/number}","comments_url":"https://api.github.com/repos/chef-solutions/pipeline/issues/23/comments","statuses_url":"https://api.github.com/repos/chef-solutions/pipeline/statuses/0e6a5ee0a4f916d112b7fa7c8124f39c00fd43b3","head":{"label":"evertrue:evertrue/eherot/bad_chef_client_command_name","ref":"evertrue/eherot/bad_chef_client_command_name","sha":"0e6a5ee0a4f916d112b7fa7c8124f39c00fd43b3","user":{"login":"evertrue","id":1162677,"avatar_url":"https://avatars.githubusercontent.com/u/1162677?v=3","gravatar_id":"","url":"https://api.github.com/users/evertrue","html_url":"https://github.com/evertrue","followers_url":"https://api.github.com/users/evertrue/followers","following_url":"https://api.github.com/users/evertrue/following{/other_user}","gists_url":"https://api.github.com/users/evertrue/gists{/gist_id}","starred_url":"https://api.github.com/users/evertrue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evertrue/subscriptions","organizations_url":"https://api.github.com/users/evertrue/orgs","repos_url":"https://api.github.com/users/evertrue/repos","events_url":"https://api.github.com/users/evertrue/events{/privacy}","received_events_url":"https://api.github.com/users/evertrue/received_events","type":"Organization","site_admin":false},"repo":{"id":35619706,"name":"pipeline","full_name":"evertrue/pipeline","owner":{"login":"evertrue","id":1162677,"avatar_url":"https://avatars.githubusercontent.com/u/1162677?v=3","gravatar_id":"","url":"https://api.github.com/users/evertrue","html_url":"https://github.com/evertrue","followers_url":"https://api.github.com/users/evertrue/followers","following_url":"https://api.github.com/users/evertrue/following{/other_user}","gists_url":"https://api.github.com/users/evertrue/gists{/gist_id}","starred_url":"https://api.github.com/users/evertrue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evertrue/subscriptions","organizations_url":"https://api.github.com/users/evertrue/orgs","repos_url":"https://api.github.com/users/evertrue/repos","events_url":"https://api.github.com/users/evertrue/events{/privacy}","received_events_url":"https://api.github.com/users/evertrue/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/evertrue/pipeline","description":"Cookbook to create Jenkins based delivery for Chef artifacts","fork":true,"url":"https://api.github.com/repos/evertrue/pipeline","forks_url":"https://api.github.com/repos/evertrue/pipeline/forks","keys_url":"https://api.github.com/repos/evertrue/pipeline/keys{/key_id}","collaborators_url":"https://api.github.com/repos/evertrue/pipeline/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/evertrue/pipeline/teams","hooks_url":"https://api.github.com/repos/evertrue/pipeline/hooks","issue_events_url":"https://api.github.com/repos/evertrue/pipeline/issues/events{/number}","events_url":"https://api.github.com/repos/evertrue/pipeline/events","assignees_url":"https://api.github.com/repos/evertrue/pipeline/assignees{/user}","branches_url":"https://api.github.com/repos/evertrue/pipeline/branches{/branch}","tags_url":"https://api.github.com/repos/evertrue/pipeline/tags","blobs_url":"https://api.github.com/repos/evertrue/pipeline/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/evertrue/pipeline/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/evertrue/pipeline/git/refs{/sha}","trees_url":"https://api.github.com/repos/evertrue/pipeline/git/trees{/sha}","statuses_url":"https://api.github.com/repos/evertrue/pipeline/statuses/{sha}","languages_url":"https://api.github.com/repos/evertrue/pipeline/languages","stargazers_url":"https://api.github.com/repos/evertrue/pipeline/stargazers","contributors_url":"https://api.github.com/repos/evertrue/pipeline/contributors","subscribers_url":"https://api.github.com/repos/evertrue/pipeline/subscribers","subscription_url":"https://api.github.com/repos/evertrue/pipeline/subscription","commits_url":"https://api.github.com/repos/evertrue/pipeline/commits{/sha}","git_commits_url":"https://api.github.com/repos/evertrue/pipeline/git/commits{/sha}","comments_url":"https://api.github.com/repos/evertrue/pipeline/comments{/number}","issue_comment_url":"https://api.github.com/repos/evertrue/pipeline/issues/comments{/number}","contents_url":"https://api.github.com/repos/evertrue/pipeline/contents/{+path}","compare_url":"https://api.github.com/repos/evertrue/pipeline/compare/{base}...{head}","merges_url":"https://api.github.com/repos/evertrue/pipeline/merges","archive_url":"https://api.github.com/repos/evertrue/pipeline/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/evertrue/pipeline/downloads","issues_url":"https://api.github.com/repos/evertrue/pipeline/issues{/number}","pulls_url":"https://api.github.com/repos/evertrue/pipeline/pulls{/number}","milestones_url":"https://api.github.com/repos/evertrue/pipeline/milestones{/number}","notifications_url":"https://api.github.com/repos/evertrue/pipeline/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/evertrue/pipeline/labels{/name}","releases_url":"https://api.github.com/repos/evertrue/pipeline/releases{/id}","created_at":"2015-05-14T15:37:28Z","updated_at":"2015-05-14T15:37:29Z","pushed_at":"2015-05-14T15:45:50Z","git_url":"git://github.com/evertrue/pipeline.git","ssh_url":"git@github.com:evertrue/pipeline.git","clone_url":"https://github.com/evertrue/pipeline.git","svn_url":"https://github.com/evertrue/pipeline","homepage":null,"size":242,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"chef-solutions:master","ref":"master","sha":"7b568be4db3a227b935ba9c655f9035db680bca6","user":{"login":"chef-solutions","id":9220291,"avatar_url":"https://avatars.githubusercontent.com/u/9220291?v=3","gravatar_id":"","url":"https://api.github.com/users/chef-solutions","html_url":"https://github.com/chef-solutions","followers_url":"https://api.github.com/users/chef-solutions/followers","following_url":"https://api.github.com/users/chef-solutions/following{/other_user}","gists_url":"https://api.github.com/users/chef-solutions/gists{/gist_id}","starred_url":"https://api.github.com/users/chef-solutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef-solutions/subscriptions","organizations_url":"https://api.github.com/users/chef-solutions/orgs","repos_url":"https://api.github.com/users/chef-solutions/repos","events_url":"https://api.github.com/users/chef-solutions/events{/privacy}","received_events_url":"https://api.github.com/users/chef-solutions/received_events","type":"Organization","site_admin":false},"repo":{"id":25265303,"name":"pipeline","full_name":"chef-solutions/pipeline","owner":{"login":"chef-solutions","id":9220291,"avatar_url":"https://avatars.githubusercontent.com/u/9220291?v=3","gravatar_id":"","url":"https://api.github.com/users/chef-solutions","html_url":"https://github.com/chef-solutions","followers_url":"https://api.github.com/users/chef-solutions/followers","following_url":"https://api.github.com/users/chef-solutions/following{/other_user}","gists_url":"https://api.github.com/users/chef-solutions/gists{/gist_id}","starred_url":"https://api.github.com/users/chef-solutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chef-solutions/subscriptions","organizations_url":"https://api.github.com/users/chef-solutions/orgs","repos_url":"https://api.github.com/users/chef-solutions/repos","events_url":"https://api.github.com/users/chef-solutions/events{/privacy}","received_events_url":"https://api.github.com/users/chef-solutions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/chef-solutions/pipeline","description":"Cookbook to create Jenkins based delivery for Chef artifacts","fork":false,"url":"https://api.github.com/repos/chef-solutions/pipeline","forks_url":"https://api.github.com/repos/chef-solutions/pipeline/forks","keys_url":"https://api.github.com/repos/chef-solutions/pipeline/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chef-solutions/pipeline/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chef-solutions/pipeline/teams","hooks_url":"https://api.github.com/repos/chef-solutions/pipeline/hooks","issue_events_url":"https://api.github.com/repos/chef-solutions/pipeline/issues/events{/number}","events_url":"https://api.github.com/repos/chef-solutions/pipeline/events","assignees_url":"https://api.github.com/repos/chef-solutions/pipeline/assignees{/user}","branches_url":"https://api.github.com/repos/chef-solutions/pipeline/branches{/branch}","tags_url":"https://api.github.com/repos/chef-solutions/pipeline/tags","blobs_url":"https://api.github.com/repos/chef-solutions/pipeline/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chef-solutions/pipeline/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chef-solutions/pipeline/git/refs{/sha}","trees_url":"https://api.github.com/repos/chef-solutions/pipeline/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chef-solutions/pipeline/statuses/{sha}","languages_url":"https://api.github.com/repos/chef-solutions/pipeline/languages","stargazers_url":"https://api.github.com/repos/chef-solutions/pipeline/stargazers","contributors_url":"https://api.github.com/repos/chef-solutions/pipeline/contributors","subscribers_url":"https://api.github.com/repos/chef-solutions/pipeline/subscribers","subscription_url":"https://api.github.com/repos/chef-solutions/pipeline/subscription","commits_url":"https://api.github.com/repos/chef-solutions/pipeline/commits{/sha}","git_commits_url":"https://api.github.com/repos/chef-solutions/pipeline/git/commits{/sha}","comments_url":"https://api.github.com/repos/chef-solutions/pipeline/comments{/number}","issue_comment_url":"https://api.github.com/repos/chef-solutions/pipeline/issues/comments{/number}","contents_url":"https://api.github.com/repos/chef-solutions/pipeline/contents/{+path}","compare_url":"https://api.github.com/repos/chef-solutions/pipeline/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chef-solutions/pipeline/merges","archive_url":"https://api.github.com/repos/chef-solutions/pipeline/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chef-solutions/pipeline/downloads","issues_url":"https://api.github.com/repos/chef-solutions/pipeline/issues{/number}","pulls_url":"https://api.github.com/repos/chef-solutions/pipeline/pulls{/number}","milestones_url":"https://api.github.com/repos/chef-solutions/pipeline/milestones{/number}","notifications_url":"https://api.github.com/repos/chef-solutions/pipeline/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chef-solutions/pipeline/labels{/name}","releases_url":"https://api.github.com/repos/chef-solutions/pipeline/releases{/id}","created_at":"2014-10-15T17:23:23Z","updated_at":"2015-05-17T13:22:08Z","pushed_at":"2015-06-13T16:55:08Z","git_url":"git://github.com/chef-solutions/pipeline.git","ssh_url":"git@github.com:chef-solutions/pipeline.git","clone_url":"https://github.com/chef-solutions/pipeline.git","svn_url":"https://github.com/chef-solutions/pipeline","homepage":null,"size":485,"stargazers_count":16,"watchers_count":16,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":13,"mirror_url":null,"open_issues_count":11,"forks":13,"open_issues":11,"watchers":16,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/chef-solutions/pipeline/pulls/23"},"html":{"href":"https://github.com/chef-solutions/pipeline/pull/23"},"issue":{"href":"https://api.github.com/repos/chef-solutions/pipeline/issues/23"},"comments":{"href":"https://api.github.com/repos/chef-solutions/pipeline/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/chef-solutions/pipeline/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/chef-solutions/pipeline/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/chef-solutions/pipeline/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/chef-solutions/pipeline/statuses/0e6a5ee0a4f916d112b7fa7c8124f39c00fd43b3"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"stephenlauck","id":183293,"avatar_url":"https://avatars.githubusercontent.com/u/183293?v=3","gravatar_id":"","url":"https://api.github.com/users/stephenlauck","html_url":"https://github.com/stephenlauck","followers_url":"https://api.github.com/users/stephenlauck/followers","following_url":"https://api.github.com/users/stephenlauck/following{/other_user}","gists_url":"https://api.github.com/users/stephenlauck/gists{/gist_id}","starred_url":"https://api.github.com/users/stephenlauck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephenlauck/subscriptions","organizations_url":"https://api.github.com/users/stephenlauck/orgs","repos_url":"https://api.github.com/users/stephenlauck/repos","events_url":"https://api.github.com/users/stephenlauck/events{/privacy}","received_events_url":"https://api.github.com/users/stephenlauck/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":5,"deletions":3,"changed_files":4}}