{"action":"created","comment":{"url":"https://api.github.com/repos/docker/machine/pulls/comments/27974693","id":27974693,"diff_hunk":"@@ -199,9 +205,13 @@ func (d *Driver) SetConfigFromFlags(flags drivers.DriverOptions) error {\n \td.SwarmMaster = flags.Bool(\"swarm-master\")\n \td.SwarmHost = flags.String(\"swarm-host\")\n \td.SwarmDiscovery = flags.String(\"swarm-discovery\")\n-\td.SSHUser = \"ubuntu\"\n+\td.SSHUser = flags.String(\"amazonec2-ssh-user\")\n \td.SSHPort = 22\n \n+\tif d.SSHUser == \"\" {","path":"drivers/amazonec2/amazonec2.go","position":21,"original_position":21,"commit_id":"e0a4b7ad57b645a7130847c90b4db722e0bd1c4a","original_commit_id":"e0a4b7ad57b645a7130847c90b4db722e0bd1c4a","user":{"login":"ehazlett","id":260642,"avatar_url":"https://avatars.githubusercontent.com/u/260642?v=3","gravatar_id":"","url":"https://api.github.com/users/ehazlett","html_url":"https://github.com/ehazlett","followers_url":"https://api.github.com/users/ehazlett/followers","following_url":"https://api.github.com/users/ehazlett/following{/other_user}","gists_url":"https://api.github.com/users/ehazlett/gists{/gist_id}","starred_url":"https://api.github.com/users/ehazlett/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehazlett/subscriptions","organizations_url":"https://api.github.com/users/ehazlett/orgs","repos_url":"https://api.github.com/users/ehazlett/repos","events_url":"https://api.github.com/users/ehazlett/events{/privacy}","received_events_url":"https://api.github.com/users/ehazlett/received_events","type":"User","site_admin":false},"body":"This isn't needed as the cli.StringFlag will always be set to \"ubuntu\" as the default.","created_at":"2015-04-08T14:31:10Z","updated_at":"2015-04-08T14:31:10Z","html_url":"https://github.com/docker/machine/pull/973#discussion_r27974693","pull_request_url":"https://api.github.com/repos/docker/machine/pulls/973","_links":{"self":{"href":"https://api.github.com/repos/docker/machine/pulls/comments/27974693"},"html":{"href":"https://github.com/docker/machine/pull/973#discussion_r27974693"},"pull_request":{"href":"https://api.github.com/repos/docker/machine/pulls/973"}}},"pull_request":{"url":"https://api.github.com/repos/docker/machine/pulls/973","id":32808066,"html_url":"https://github.com/docker/machine/pull/973","diff_url":"https://github.com/docker/machine/pull/973.diff","patch_url":"https://github.com/docker/machine/pull/973.patch","issue_url":"https://api.github.com/repos/docker/machine/issues/973","number":973,"state":"open","locked":false,"title":"make ssh username configurable for ec2","user":{"login":"wlan0","id":1050521,"avatar_url":"https://avatars.githubusercontent.com/u/1050521?v=3","gravatar_id":"","url":"https://api.github.com/users/wlan0","html_url":"https://github.com/wlan0","followers_url":"https://api.github.com/users/wlan0/followers","following_url":"https://api.github.com/users/wlan0/following{/other_user}","gists_url":"https://api.github.com/users/wlan0/gists{/gist_id}","starred_url":"https://api.github.com/users/wlan0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wlan0/subscriptions","organizations_url":"https://api.github.com/users/wlan0/orgs","repos_url":"https://api.github.com/users/wlan0/repos","events_url":"https://api.github.com/users/wlan0/events{/privacy}","received_events_url":"https://api.github.com/users/wlan0/received_events","type":"User","site_admin":false},"body":"@ehazlett \r\n\r\nIm working on provisioning rancherOS instance using machine. For aws, the SSH user needs to be 'rancher' for rancherOS instead of the default 'ubuntu'. \r\n\r\nI made the SSH user name a configurable flag to support this.  ","created_at":"2015-04-07T21:34:49Z","updated_at":"2015-04-08T14:31:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d647381ac84c22e4565e8d095d499f377ef92d42","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/docker/machine/pulls/973/commits","review_comments_url":"https://api.github.com/repos/docker/machine/pulls/973/comments","review_comment_url":"https://api.github.com/repos/docker/machine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/docker/machine/issues/973/comments","statuses_url":"https://api.github.com/repos/docker/machine/statuses/e0a4b7ad57b645a7130847c90b4db722e0bd1c4a","head":{"label":"wlan0:master","ref":"master","sha":"e0a4b7ad57b645a7130847c90b4db722e0bd1c4a","user":{"login":"wlan0","id":1050521,"avatar_url":"https://avatars.githubusercontent.com/u/1050521?v=3","gravatar_id":"","url":"https://api.github.com/users/wlan0","html_url":"https://github.com/wlan0","followers_url":"https://api.github.com/users/wlan0/followers","following_url":"https://api.github.com/users/wlan0/following{/other_user}","gists_url":"https://api.github.com/users/wlan0/gists{/gist_id}","starred_url":"https://api.github.com/users/wlan0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wlan0/subscriptions","organizations_url":"https://api.github.com/users/wlan0/orgs","repos_url":"https://api.github.com/users/wlan0/repos","events_url":"https://api.github.com/users/wlan0/events{/privacy}","received_events_url":"https://api.github.com/users/wlan0/received_events","type":"User","site_admin":false},"repo":{"id":33505771,"name":"machine","full_name":"wlan0/machine","owner":{"login":"wlan0","id":1050521,"avatar_url":"https://avatars.githubusercontent.com/u/1050521?v=3","gravatar_id":"","url":"https://api.github.com/users/wlan0","html_url":"https://github.com/wlan0","followers_url":"https://api.github.com/users/wlan0/followers","following_url":"https://api.github.com/users/wlan0/following{/other_user}","gists_url":"https://api.github.com/users/wlan0/gists{/gist_id}","starred_url":"https://api.github.com/users/wlan0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wlan0/subscriptions","organizations_url":"https://api.github.com/users/wlan0/orgs","repos_url":"https://api.github.com/users/wlan0/repos","events_url":"https://api.github.com/users/wlan0/events{/privacy}","received_events_url":"https://api.github.com/users/wlan0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/wlan0/machine","description":"Machine management for a container-centric world","fork":true,"url":"https://api.github.com/repos/wlan0/machine","forks_url":"https://api.github.com/repos/wlan0/machine/forks","keys_url":"https://api.github.com/repos/wlan0/machine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wlan0/machine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wlan0/machine/teams","hooks_url":"https://api.github.com/repos/wlan0/machine/hooks","issue_events_url":"https://api.github.com/repos/wlan0/machine/issues/events{/number}","events_url":"https://api.github.com/repos/wlan0/machine/events","assignees_url":"https://api.github.com/repos/wlan0/machine/assignees{/user}","branches_url":"https://api.github.com/repos/wlan0/machine/branches{/branch}","tags_url":"https://api.github.com/repos/wlan0/machine/tags","blobs_url":"https://api.github.com/repos/wlan0/machine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wlan0/machine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wlan0/machine/git/refs{/sha}","trees_url":"https://api.github.com/repos/wlan0/machine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wlan0/machine/statuses/{sha}","languages_url":"https://api.github.com/repos/wlan0/machine/languages","stargazers_url":"https://api.github.com/repos/wlan0/machine/stargazers","contributors_url":"https://api.github.com/repos/wlan0/machine/contributors","subscribers_url":"https://api.github.com/repos/wlan0/machine/subscribers","subscription_url":"https://api.github.com/repos/wlan0/machine/subscription","commits_url":"https://api.github.com/repos/wlan0/machine/commits{/sha}","git_commits_url":"https://api.github.com/repos/wlan0/machine/git/commits{/sha}","comments_url":"https://api.github.com/repos/wlan0/machine/comments{/number}","issue_comment_url":"https://api.github.com/repos/wlan0/machine/issues/comments{/number}","contents_url":"https://api.github.com/repos/wlan0/machine/contents/{+path}","compare_url":"https://api.github.com/repos/wlan0/machine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wlan0/machine/merges","archive_url":"https://api.github.com/repos/wlan0/machine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wlan0/machine/downloads","issues_url":"https://api.github.com/repos/wlan0/machine/issues{/number}","pulls_url":"https://api.github.com/repos/wlan0/machine/pulls{/number}","milestones_url":"https://api.github.com/repos/wlan0/machine/milestones{/number}","notifications_url":"https://api.github.com/repos/wlan0/machine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wlan0/machine/labels{/name}","releases_url":"https://api.github.com/repos/wlan0/machine/releases{/id}","created_at":"2015-04-06T21:03:08Z","updated_at":"2015-04-07T22:00:24Z","pushed_at":"2015-04-07T22:00:24Z","git_url":"git://github.com/wlan0/machine.git","ssh_url":"git@github.com:wlan0/machine.git","clone_url":"https://github.com/wlan0/machine.git","svn_url":"https://github.com/wlan0/machine","homepage":"https://docs.docker.com/machine/","size":2931,"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":"docker:master","ref":"master","sha":"cbbf0ec0ebaa71b4c24b9de529e83b9fc1d9c359","user":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"repo":{"id":27494663,"name":"machine","full_name":"docker/machine","owner":{"login":"docker","id":5429470,"avatar_url":"https://avatars.githubusercontent.com/u/5429470?v=3","gravatar_id":"","url":"https://api.github.com/users/docker","html_url":"https://github.com/docker","followers_url":"https://api.github.com/users/docker/followers","following_url":"https://api.github.com/users/docker/following{/other_user}","gists_url":"https://api.github.com/users/docker/gists{/gist_id}","starred_url":"https://api.github.com/users/docker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/docker/subscriptions","organizations_url":"https://api.github.com/users/docker/orgs","repos_url":"https://api.github.com/users/docker/repos","events_url":"https://api.github.com/users/docker/events{/privacy}","received_events_url":"https://api.github.com/users/docker/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/docker/machine","description":"Machine management for a container-centric world","fork":false,"url":"https://api.github.com/repos/docker/machine","forks_url":"https://api.github.com/repos/docker/machine/forks","keys_url":"https://api.github.com/repos/docker/machine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/docker/machine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/docker/machine/teams","hooks_url":"https://api.github.com/repos/docker/machine/hooks","issue_events_url":"https://api.github.com/repos/docker/machine/issues/events{/number}","events_url":"https://api.github.com/repos/docker/machine/events","assignees_url":"https://api.github.com/repos/docker/machine/assignees{/user}","branches_url":"https://api.github.com/repos/docker/machine/branches{/branch}","tags_url":"https://api.github.com/repos/docker/machine/tags","blobs_url":"https://api.github.com/repos/docker/machine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/docker/machine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/docker/machine/git/refs{/sha}","trees_url":"https://api.github.com/repos/docker/machine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/docker/machine/statuses/{sha}","languages_url":"https://api.github.com/repos/docker/machine/languages","stargazers_url":"https://api.github.com/repos/docker/machine/stargazers","contributors_url":"https://api.github.com/repos/docker/machine/contributors","subscribers_url":"https://api.github.com/repos/docker/machine/subscribers","subscription_url":"https://api.github.com/repos/docker/machine/subscription","commits_url":"https://api.github.com/repos/docker/machine/commits{/sha}","git_commits_url":"https://api.github.com/repos/docker/machine/git/commits{/sha}","comments_url":"https://api.github.com/repos/docker/machine/comments{/number}","issue_comment_url":"https://api.github.com/repos/docker/machine/issues/comments{/number}","contents_url":"https://api.github.com/repos/docker/machine/contents/{+path}","compare_url":"https://api.github.com/repos/docker/machine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/docker/machine/merges","archive_url":"https://api.github.com/repos/docker/machine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/docker/machine/downloads","issues_url":"https://api.github.com/repos/docker/machine/issues{/number}","pulls_url":"https://api.github.com/repos/docker/machine/pulls{/number}","milestones_url":"https://api.github.com/repos/docker/machine/milestones{/number}","notifications_url":"https://api.github.com/repos/docker/machine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/docker/machine/labels{/name}","releases_url":"https://api.github.com/repos/docker/machine/releases{/id}","created_at":"2014-12-03T15:52:06Z","updated_at":"2015-04-08T14:16:17Z","pushed_at":"2015-04-08T08:24:52Z","git_url":"git://github.com/docker/machine.git","ssh_url":"git@github.com:docker/machine.git","clone_url":"https://github.com/docker/machine.git","svn_url":"https://github.com/docker/machine","homepage":"https://docs.docker.com/machine/","size":22243,"stargazers_count":1658,"watchers_count":1658,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":267,"mirror_url":null,"open_issues_count":212,"forks":267,"open_issues":212,"watchers":1658,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/docker/machine/pulls/973"},"html":{"href":"https://github.com/docker/machine/pull/973"},"issue":{"href":"https://api.github.com/repos/docker/machine/issues/973"},"comments":{"href":"https://api.github.com/repos/docker/machine/issues/973/comments"},"review_comments":{"href":"https://api.github.com/repos/docker/machine/pulls/973/comments"},"review_comment":{"href":"https://api.github.com/repos/docker/machine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/docker/machine/pulls/973/commits"},"statuses":{"href":"https://api.github.com/repos/docker/machine/statuses/e0a4b7ad57b645a7130847c90b4db722e0bd1c4a"}}}}