{"action":"closed","number":2,"pull_request":{"url":"https://api.github.com/repos/sthulb/machine/pulls/2","id":30991317,"html_url":"https://github.com/sthulb/machine/pull/2","diff_url":"https://github.com/sthulb/machine/pull/2.diff","patch_url":"https://github.com/sthulb/machine/pull/2.patch","issue_url":"https://api.github.com/repos/sthulb/machine/issues/2","number":2,"state":"closed","locked":false,"title":"Implement reflection to parse /etc/os-release","user":{"login":"nathanleclaire","id":1476820,"avatar_url":"https://avatars.githubusercontent.com/u/1476820?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanleclaire","html_url":"https://github.com/nathanleclaire","followers_url":"https://api.github.com/users/nathanleclaire/followers","following_url":"https://api.github.com/users/nathanleclaire/following{/other_user}","gists_url":"https://api.github.com/users/nathanleclaire/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanleclaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanleclaire/subscriptions","organizations_url":"https://api.github.com/users/nathanleclaire/orgs","repos_url":"https://api.github.com/users/nathanleclaire/repos","events_url":"https://api.github.com/users/nathanleclaire/events{/privacy}","received_events_url":"https://api.github.com/users/nathanleclaire/received_events","type":"User","site_admin":false},"body":"And corresponding logic to use it in the provisioner(s)\r\n\r\nAlso:\r\n\r\n- Detect the provisioner after saving the configuration\r\n- Rename SSHCommandFunc => SSHCommand\r\n    (idiomatically, fooFunc is reservered for functions that return or\r\n    accept functions as arguments)\r\n- Move check for valid hostname to the very start of an attempted create\r\n    (otherwise references to invalidly named hostnames will linger)\r\n\r\nOK, sorry about the few extra things mixed in here, but this works!\r\n\r\nNow all that drivers have to do is check their `OsReleaseInfo` to determine if they're a good fit or not for the provisioning.\r\n\r\nSigned-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>","created_at":"2015-03-11T22:21:05Z","updated_at":"2015-03-13T09:13:30Z","closed_at":"2015-03-13T09:13:30Z","merged_at":"2015-03-13T09:13:30Z","merge_commit_sha":"e64f9c2f8007df5283ee6ef97aa57b089d9b7d5d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sthulb/machine/pulls/2/commits","review_comments_url":"https://api.github.com/repos/sthulb/machine/pulls/2/comments","review_comment_url":"https://api.github.com/repos/sthulb/machine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sthulb/machine/issues/2/comments","statuses_url":"https://api.github.com/repos/sthulb/machine/statuses/169ab0ec6b2a530383f1a31a91d84794b9d6740b","head":{"label":"nathanleclaire:sthulb-os-abstraction","ref":"sthulb-os-abstraction","sha":"169ab0ec6b2a530383f1a31a91d84794b9d6740b","user":{"login":"nathanleclaire","id":1476820,"avatar_url":"https://avatars.githubusercontent.com/u/1476820?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanleclaire","html_url":"https://github.com/nathanleclaire","followers_url":"https://api.github.com/users/nathanleclaire/followers","following_url":"https://api.github.com/users/nathanleclaire/following{/other_user}","gists_url":"https://api.github.com/users/nathanleclaire/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanleclaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanleclaire/subscriptions","organizations_url":"https://api.github.com/users/nathanleclaire/orgs","repos_url":"https://api.github.com/users/nathanleclaire/repos","events_url":"https://api.github.com/users/nathanleclaire/events{/privacy}","received_events_url":"https://api.github.com/users/nathanleclaire/received_events","type":"User","site_admin":false},"repo":{"id":27627407,"name":"machine","full_name":"nathanleclaire/machine","owner":{"login":"nathanleclaire","id":1476820,"avatar_url":"https://avatars.githubusercontent.com/u/1476820?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanleclaire","html_url":"https://github.com/nathanleclaire","followers_url":"https://api.github.com/users/nathanleclaire/followers","following_url":"https://api.github.com/users/nathanleclaire/following{/other_user}","gists_url":"https://api.github.com/users/nathanleclaire/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanleclaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanleclaire/subscriptions","organizations_url":"https://api.github.com/users/nathanleclaire/orgs","repos_url":"https://api.github.com/users/nathanleclaire/repos","events_url":"https://api.github.com/users/nathanleclaire/events{/privacy}","received_events_url":"https://api.github.com/users/nathanleclaire/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nathanleclaire/machine","description":"Machine management for a container-centric world","fork":true,"url":"https://api.github.com/repos/nathanleclaire/machine","forks_url":"https://api.github.com/repos/nathanleclaire/machine/forks","keys_url":"https://api.github.com/repos/nathanleclaire/machine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nathanleclaire/machine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nathanleclaire/machine/teams","hooks_url":"https://api.github.com/repos/nathanleclaire/machine/hooks","issue_events_url":"https://api.github.com/repos/nathanleclaire/machine/issues/events{/number}","events_url":"https://api.github.com/repos/nathanleclaire/machine/events","assignees_url":"https://api.github.com/repos/nathanleclaire/machine/assignees{/user}","branches_url":"https://api.github.com/repos/nathanleclaire/machine/branches{/branch}","tags_url":"https://api.github.com/repos/nathanleclaire/machine/tags","blobs_url":"https://api.github.com/repos/nathanleclaire/machine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nathanleclaire/machine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nathanleclaire/machine/git/refs{/sha}","trees_url":"https://api.github.com/repos/nathanleclaire/machine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nathanleclaire/machine/statuses/{sha}","languages_url":"https://api.github.com/repos/nathanleclaire/machine/languages","stargazers_url":"https://api.github.com/repos/nathanleclaire/machine/stargazers","contributors_url":"https://api.github.com/repos/nathanleclaire/machine/contributors","subscribers_url":"https://api.github.com/repos/nathanleclaire/machine/subscribers","subscription_url":"https://api.github.com/repos/nathanleclaire/machine/subscription","commits_url":"https://api.github.com/repos/nathanleclaire/machine/commits{/sha}","git_commits_url":"https://api.github.com/repos/nathanleclaire/machine/git/commits{/sha}","comments_url":"https://api.github.com/repos/nathanleclaire/machine/comments{/number}","issue_comment_url":"https://api.github.com/repos/nathanleclaire/machine/issues/comments{/number}","contents_url":"https://api.github.com/repos/nathanleclaire/machine/contents/{+path}","compare_url":"https://api.github.com/repos/nathanleclaire/machine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nathanleclaire/machine/merges","archive_url":"https://api.github.com/repos/nathanleclaire/machine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nathanleclaire/machine/downloads","issues_url":"https://api.github.com/repos/nathanleclaire/machine/issues{/number}","pulls_url":"https://api.github.com/repos/nathanleclaire/machine/pulls{/number}","milestones_url":"https://api.github.com/repos/nathanleclaire/machine/milestones{/number}","notifications_url":"https://api.github.com/repos/nathanleclaire/machine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nathanleclaire/machine/labels{/name}","releases_url":"https://api.github.com/repos/nathanleclaire/machine/releases{/id}","created_at":"2014-12-06T08:16:23Z","updated_at":"2015-02-26T08:18:31Z","pushed_at":"2015-03-13T01:26:38Z","git_url":"git://github.com/nathanleclaire/machine.git","ssh_url":"git@github.com:nathanleclaire/machine.git","clone_url":"https://github.com/nathanleclaire/machine.git","svn_url":"https://github.com/nathanleclaire/machine","homepage":null,"size":3387,"stargazers_count":0,"watchers_count":0,"language":"Go","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":"sthulb:os-abstraction","ref":"os-abstraction","sha":"0fc964d65f7e6b2ec9b7196dfdc27a4c0b436e87","user":{"login":"sthulb","id":103217,"avatar_url":"https://avatars.githubusercontent.com/u/103217?v=3","gravatar_id":"","url":"https://api.github.com/users/sthulb","html_url":"https://github.com/sthulb","followers_url":"https://api.github.com/users/sthulb/followers","following_url":"https://api.github.com/users/sthulb/following{/other_user}","gists_url":"https://api.github.com/users/sthulb/gists{/gist_id}","starred_url":"https://api.github.com/users/sthulb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sthulb/subscriptions","organizations_url":"https://api.github.com/users/sthulb/orgs","repos_url":"https://api.github.com/users/sthulb/repos","events_url":"https://api.github.com/users/sthulb/events{/privacy}","received_events_url":"https://api.github.com/users/sthulb/received_events","type":"User","site_admin":false},"repo":{"id":27667591,"name":"machine","full_name":"sthulb/machine","owner":{"login":"sthulb","id":103217,"avatar_url":"https://avatars.githubusercontent.com/u/103217?v=3","gravatar_id":"","url":"https://api.github.com/users/sthulb","html_url":"https://github.com/sthulb","followers_url":"https://api.github.com/users/sthulb/followers","following_url":"https://api.github.com/users/sthulb/following{/other_user}","gists_url":"https://api.github.com/users/sthulb/gists{/gist_id}","starred_url":"https://api.github.com/users/sthulb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sthulb/subscriptions","organizations_url":"https://api.github.com/users/sthulb/orgs","repos_url":"https://api.github.com/users/sthulb/repos","events_url":"https://api.github.com/users/sthulb/events{/privacy}","received_events_url":"https://api.github.com/users/sthulb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sthulb/machine","description":"Machine management for a container-centric world","fork":true,"url":"https://api.github.com/repos/sthulb/machine","forks_url":"https://api.github.com/repos/sthulb/machine/forks","keys_url":"https://api.github.com/repos/sthulb/machine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sthulb/machine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sthulb/machine/teams","hooks_url":"https://api.github.com/repos/sthulb/machine/hooks","issue_events_url":"https://api.github.com/repos/sthulb/machine/issues/events{/number}","events_url":"https://api.github.com/repos/sthulb/machine/events","assignees_url":"https://api.github.com/repos/sthulb/machine/assignees{/user}","branches_url":"https://api.github.com/repos/sthulb/machine/branches{/branch}","tags_url":"https://api.github.com/repos/sthulb/machine/tags","blobs_url":"https://api.github.com/repos/sthulb/machine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sthulb/machine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sthulb/machine/git/refs{/sha}","trees_url":"https://api.github.com/repos/sthulb/machine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sthulb/machine/statuses/{sha}","languages_url":"https://api.github.com/repos/sthulb/machine/languages","stargazers_url":"https://api.github.com/repos/sthulb/machine/stargazers","contributors_url":"https://api.github.com/repos/sthulb/machine/contributors","subscribers_url":"https://api.github.com/repos/sthulb/machine/subscribers","subscription_url":"https://api.github.com/repos/sthulb/machine/subscription","commits_url":"https://api.github.com/repos/sthulb/machine/commits{/sha}","git_commits_url":"https://api.github.com/repos/sthulb/machine/git/commits{/sha}","comments_url":"https://api.github.com/repos/sthulb/machine/comments{/number}","issue_comment_url":"https://api.github.com/repos/sthulb/machine/issues/comments{/number}","contents_url":"https://api.github.com/repos/sthulb/machine/contents/{+path}","compare_url":"https://api.github.com/repos/sthulb/machine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sthulb/machine/merges","archive_url":"https://api.github.com/repos/sthulb/machine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sthulb/machine/downloads","issues_url":"https://api.github.com/repos/sthulb/machine/issues{/number}","pulls_url":"https://api.github.com/repos/sthulb/machine/pulls{/number}","milestones_url":"https://api.github.com/repos/sthulb/machine/milestones{/number}","notifications_url":"https://api.github.com/repos/sthulb/machine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sthulb/machine/labels{/name}","releases_url":"https://api.github.com/repos/sthulb/machine/releases{/id}","created_at":"2014-12-07T11:12:49Z","updated_at":"2015-02-03T17:17:17Z","pushed_at":"2015-03-13T09:13:30Z","git_url":"git://github.com/sthulb/machine.git","ssh_url":"git@github.com:sthulb/machine.git","clone_url":"https://github.com/sthulb/machine.git","svn_url":"https://github.com/sthulb/machine","homepage":null,"size":3371,"stargazers_count":0,"watchers_count":0,"language":"Go","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"}},"_links":{"self":{"href":"https://api.github.com/repos/sthulb/machine/pulls/2"},"html":{"href":"https://github.com/sthulb/machine/pull/2"},"issue":{"href":"https://api.github.com/repos/sthulb/machine/issues/2"},"comments":{"href":"https://api.github.com/repos/sthulb/machine/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/sthulb/machine/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/sthulb/machine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sthulb/machine/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/sthulb/machine/statuses/169ab0ec6b2a530383f1a31a91d84794b9d6740b"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"sthulb","id":103217,"avatar_url":"https://avatars.githubusercontent.com/u/103217?v=3","gravatar_id":"","url":"https://api.github.com/users/sthulb","html_url":"https://github.com/sthulb","followers_url":"https://api.github.com/users/sthulb/followers","following_url":"https://api.github.com/users/sthulb/following{/other_user}","gists_url":"https://api.github.com/users/sthulb/gists{/gist_id}","starred_url":"https://api.github.com/users/sthulb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sthulb/subscriptions","organizations_url":"https://api.github.com/users/sthulb/orgs","repos_url":"https://api.github.com/users/sthulb/repos","events_url":"https://api.github.com/users/sthulb/events{/privacy}","received_events_url":"https://api.github.com/users/sthulb/received_events","type":"User","site_admin":false},"comments":4,"review_comments":0,"commits":2,"additions":296,"deletions":62,"changed_files":6}}