{"action":"created","comment":{"url":"https://api.github.com/repos/puppetlabs/beaker/pulls/comments/31461217","id":31461217,"diff_hunk":"@@ -46,7 +80,20 @@ def self.create version, hosts, options\n     # @param [String] default Should there be no user value for the provided question name return this default\n     # @return [String] The answer value\n     def answer_for(options, q, default = nil)\n-      options[:answers][q] ? options[:answers][q] : default\n+      answer = nil","path":"lib/beaker/answers.rb","position":46,"original_position":46,"commit_id":"ee35193ff9190eadc3df9cda438b8059f0aea1b7","original_commit_id":"ee35193ff9190eadc3df9cda438b8059f0aea1b7","user":{"login":"colinPL","id":6528153,"avatar_url":"https://avatars.githubusercontent.com/u/6528153?v=3","gravatar_id":"","url":"https://api.github.com/users/colinPL","html_url":"https://github.com/colinPL","followers_url":"https://api.github.com/users/colinPL/followers","following_url":"https://api.github.com/users/colinPL/following{/other_user}","gists_url":"https://api.github.com/users/colinPL/gists{/gist_id}","starred_url":"https://api.github.com/users/colinPL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinPL/subscriptions","organizations_url":"https://api.github.com/users/colinPL/orgs","repos_url":"https://api.github.com/users/colinPL/repos","events_url":"https://api.github.com/users/colinPL/events{/privacy}","received_events_url":"https://api.github.com/users/colinPL/received_events","type":"User","site_admin":false},"body":"This can be `answer = DEFAULT_ANSWERS[q]`. If `DEFAULT_ANSWERS` does not contain `q`, the value will be `nil`. This would not impact setting the value to `default` later in the method.","created_at":"2015-06-01T19:34:24Z","updated_at":"2015-06-01T19:34:24Z","html_url":"https://github.com/puppetlabs/beaker/pull/821#discussion_r31461217","pull_request_url":"https://api.github.com/repos/puppetlabs/beaker/pulls/821","_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/beaker/pulls/comments/31461217"},"html":{"href":"https://github.com/puppetlabs/beaker/pull/821#discussion_r31461217"},"pull_request":{"href":"https://api.github.com/repos/puppetlabs/beaker/pulls/821"}}},"pull_request":{"url":"https://api.github.com/repos/puppetlabs/beaker/pulls/821","id":36436970,"html_url":"https://github.com/puppetlabs/beaker/pull/821","diff_url":"https://github.com/puppetlabs/beaker/pull/821.diff","patch_url":"https://github.com/puppetlabs/beaker/pull/821.patch","issue_url":"https://api.github.com/repos/puppetlabs/beaker/issues/821","number":821,"state":"open","locked":false,"title":"(BKR-273) Allow Setting Type by Host","user":{"login":"anodelman","id":4140109,"avatar_url":"https://avatars.githubusercontent.com/u/4140109?v=3","gravatar_id":"","url":"https://api.github.com/users/anodelman","html_url":"https://github.com/anodelman","followers_url":"https://api.github.com/users/anodelman/followers","following_url":"https://api.github.com/users/anodelman/following{/other_user}","gists_url":"https://api.github.com/users/anodelman/gists{/gist_id}","starred_url":"https://api.github.com/users/anodelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anodelman/subscriptions","organizations_url":"https://api.github.com/users/anodelman/orgs","repos_url":"https://api.github.com/users/anodelman/repos","events_url":"https://api.github.com/users/anodelman/events{/privacy}","received_events_url":"https://api.github.com/users/anodelman/received_events","type":"User","site_admin":false},"body":"- no longer use 'type' to control path/default host settings\r\n- set environment and defaults post pe/foss installation\r\n- dump more information post testing so that you can correctly pick up\r\n  the host again","created_at":"2015-05-28T18:33:58Z","updated_at":"2015-06-01T19:34:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a4c439af09cabf6c4d2d8af3d4347cf52e8c1d4e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/puppetlabs/beaker/pulls/821/commits","review_comments_url":"https://api.github.com/repos/puppetlabs/beaker/pulls/821/comments","review_comment_url":"https://api.github.com/repos/puppetlabs/beaker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/puppetlabs/beaker/issues/821/comments","statuses_url":"https://api.github.com/repos/puppetlabs/beaker/statuses/ee35193ff9190eadc3df9cda438b8059f0aea1b7","head":{"label":"anodelman:shallow","ref":"shallow","sha":"ee35193ff9190eadc3df9cda438b8059f0aea1b7","user":{"login":"anodelman","id":4140109,"avatar_url":"https://avatars.githubusercontent.com/u/4140109?v=3","gravatar_id":"","url":"https://api.github.com/users/anodelman","html_url":"https://github.com/anodelman","followers_url":"https://api.github.com/users/anodelman/followers","following_url":"https://api.github.com/users/anodelman/following{/other_user}","gists_url":"https://api.github.com/users/anodelman/gists{/gist_id}","starred_url":"https://api.github.com/users/anodelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anodelman/subscriptions","organizations_url":"https://api.github.com/users/anodelman/orgs","repos_url":"https://api.github.com/users/anodelman/repos","events_url":"https://api.github.com/users/anodelman/events{/privacy}","received_events_url":"https://api.github.com/users/anodelman/received_events","type":"User","site_admin":false},"repo":{"id":12164832,"name":"beaker","full_name":"anodelman/beaker","owner":{"login":"anodelman","id":4140109,"avatar_url":"https://avatars.githubusercontent.com/u/4140109?v=3","gravatar_id":"","url":"https://api.github.com/users/anodelman","html_url":"https://github.com/anodelman","followers_url":"https://api.github.com/users/anodelman/followers","following_url":"https://api.github.com/users/anodelman/following{/other_user}","gists_url":"https://api.github.com/users/anodelman/gists{/gist_id}","starred_url":"https://api.github.com/users/anodelman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anodelman/subscriptions","organizations_url":"https://api.github.com/users/anodelman/orgs","repos_url":"https://api.github.com/users/anodelman/repos","events_url":"https://api.github.com/users/anodelman/events{/privacy}","received_events_url":"https://api.github.com/users/anodelman/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/anodelman/beaker","description":"Puppet acceptance testing harness","fork":true,"url":"https://api.github.com/repos/anodelman/beaker","forks_url":"https://api.github.com/repos/anodelman/beaker/forks","keys_url":"https://api.github.com/repos/anodelman/beaker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/anodelman/beaker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/anodelman/beaker/teams","hooks_url":"https://api.github.com/repos/anodelman/beaker/hooks","issue_events_url":"https://api.github.com/repos/anodelman/beaker/issues/events{/number}","events_url":"https://api.github.com/repos/anodelman/beaker/events","assignees_url":"https://api.github.com/repos/anodelman/beaker/assignees{/user}","branches_url":"https://api.github.com/repos/anodelman/beaker/branches{/branch}","tags_url":"https://api.github.com/repos/anodelman/beaker/tags","blobs_url":"https://api.github.com/repos/anodelman/beaker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/anodelman/beaker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/anodelman/beaker/git/refs{/sha}","trees_url":"https://api.github.com/repos/anodelman/beaker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/anodelman/beaker/statuses/{sha}","languages_url":"https://api.github.com/repos/anodelman/beaker/languages","stargazers_url":"https://api.github.com/repos/anodelman/beaker/stargazers","contributors_url":"https://api.github.com/repos/anodelman/beaker/contributors","subscribers_url":"https://api.github.com/repos/anodelman/beaker/subscribers","subscription_url":"https://api.github.com/repos/anodelman/beaker/subscription","commits_url":"https://api.github.com/repos/anodelman/beaker/commits{/sha}","git_commits_url":"https://api.github.com/repos/anodelman/beaker/git/commits{/sha}","comments_url":"https://api.github.com/repos/anodelman/beaker/comments{/number}","issue_comment_url":"https://api.github.com/repos/anodelman/beaker/issues/comments{/number}","contents_url":"https://api.github.com/repos/anodelman/beaker/contents/{+path}","compare_url":"https://api.github.com/repos/anodelman/beaker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/anodelman/beaker/merges","archive_url":"https://api.github.com/repos/anodelman/beaker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/anodelman/beaker/downloads","issues_url":"https://api.github.com/repos/anodelman/beaker/issues{/number}","pulls_url":"https://api.github.com/repos/anodelman/beaker/pulls{/number}","milestones_url":"https://api.github.com/repos/anodelman/beaker/milestones{/number}","notifications_url":"https://api.github.com/repos/anodelman/beaker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/anodelman/beaker/labels{/name}","releases_url":"https://api.github.com/repos/anodelman/beaker/releases{/id}","created_at":"2013-08-16T18:04:59Z","updated_at":"2015-03-18T23:15:01Z","pushed_at":"2015-06-01T18:45:07Z","git_url":"git://github.com/anodelman/beaker.git","ssh_url":"git@github.com:anodelman/beaker.git","clone_url":"https://github.com/anodelman/beaker.git","svn_url":"https://github.com/anodelman/beaker","homepage":null,"size":11612,"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":"puppetlabs:master","ref":"master","sha":"b79154852448a054062bca81575b47aa3d4165a8","user":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":12164675,"name":"beaker","full_name":"puppetlabs/beaker","owner":{"login":"puppetlabs","id":234268,"avatar_url":"https://avatars.githubusercontent.com/u/234268?v=3","gravatar_id":"","url":"https://api.github.com/users/puppetlabs","html_url":"https://github.com/puppetlabs","followers_url":"https://api.github.com/users/puppetlabs/followers","following_url":"https://api.github.com/users/puppetlabs/following{/other_user}","gists_url":"https://api.github.com/users/puppetlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/puppetlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/puppetlabs/subscriptions","organizations_url":"https://api.github.com/users/puppetlabs/orgs","repos_url":"https://api.github.com/users/puppetlabs/repos","events_url":"https://api.github.com/users/puppetlabs/events{/privacy}","received_events_url":"https://api.github.com/users/puppetlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/puppetlabs/beaker","description":"Puppet Acceptance Testing Harness","fork":false,"url":"https://api.github.com/repos/puppetlabs/beaker","forks_url":"https://api.github.com/repos/puppetlabs/beaker/forks","keys_url":"https://api.github.com/repos/puppetlabs/beaker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/puppetlabs/beaker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/puppetlabs/beaker/teams","hooks_url":"https://api.github.com/repos/puppetlabs/beaker/hooks","issue_events_url":"https://api.github.com/repos/puppetlabs/beaker/issues/events{/number}","events_url":"https://api.github.com/repos/puppetlabs/beaker/events","assignees_url":"https://api.github.com/repos/puppetlabs/beaker/assignees{/user}","branches_url":"https://api.github.com/repos/puppetlabs/beaker/branches{/branch}","tags_url":"https://api.github.com/repos/puppetlabs/beaker/tags","blobs_url":"https://api.github.com/repos/puppetlabs/beaker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/puppetlabs/beaker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/puppetlabs/beaker/git/refs{/sha}","trees_url":"https://api.github.com/repos/puppetlabs/beaker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/puppetlabs/beaker/statuses/{sha}","languages_url":"https://api.github.com/repos/puppetlabs/beaker/languages","stargazers_url":"https://api.github.com/repos/puppetlabs/beaker/stargazers","contributors_url":"https://api.github.com/repos/puppetlabs/beaker/contributors","subscribers_url":"https://api.github.com/repos/puppetlabs/beaker/subscribers","subscription_url":"https://api.github.com/repos/puppetlabs/beaker/subscription","commits_url":"https://api.github.com/repos/puppetlabs/beaker/commits{/sha}","git_commits_url":"https://api.github.com/repos/puppetlabs/beaker/git/commits{/sha}","comments_url":"https://api.github.com/repos/puppetlabs/beaker/comments{/number}","issue_comment_url":"https://api.github.com/repos/puppetlabs/beaker/issues/comments{/number}","contents_url":"https://api.github.com/repos/puppetlabs/beaker/contents/{+path}","compare_url":"https://api.github.com/repos/puppetlabs/beaker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/puppetlabs/beaker/merges","archive_url":"https://api.github.com/repos/puppetlabs/beaker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/puppetlabs/beaker/downloads","issues_url":"https://api.github.com/repos/puppetlabs/beaker/issues{/number}","pulls_url":"https://api.github.com/repos/puppetlabs/beaker/pulls{/number}","milestones_url":"https://api.github.com/repos/puppetlabs/beaker/milestones{/number}","notifications_url":"https://api.github.com/repos/puppetlabs/beaker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/puppetlabs/beaker/labels{/name}","releases_url":"https://api.github.com/repos/puppetlabs/beaker/releases{/id}","created_at":"2013-08-16T17:57:03Z","updated_at":"2015-05-29T10:34:00Z","pushed_at":"2015-06-01T19:06:07Z","git_url":"git://github.com/puppetlabs/beaker.git","ssh_url":"git@github.com:puppetlabs/beaker.git","clone_url":"https://github.com/puppetlabs/beaker.git","svn_url":"https://github.com/puppetlabs/beaker","homepage":"https://groups.google.com/forum/#!forum/puppet-beaker","size":19708,"stargazers_count":169,"watchers_count":169,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":138,"mirror_url":null,"open_issues_count":9,"forks":138,"open_issues":9,"watchers":169,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/puppetlabs/beaker/pulls/821"},"html":{"href":"https://github.com/puppetlabs/beaker/pull/821"},"issue":{"href":"https://api.github.com/repos/puppetlabs/beaker/issues/821"},"comments":{"href":"https://api.github.com/repos/puppetlabs/beaker/issues/821/comments"},"review_comments":{"href":"https://api.github.com/repos/puppetlabs/beaker/pulls/821/comments"},"review_comment":{"href":"https://api.github.com/repos/puppetlabs/beaker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/puppetlabs/beaker/pulls/821/commits"},"statuses":{"href":"https://api.github.com/repos/puppetlabs/beaker/statuses/ee35193ff9190eadc3df9cda438b8059f0aea1b7"}}}}