{"action":"created","issue":{"url":"https://api.github.com/repos/docker/machine/issues/859","labels_url":"https://api.github.com/repos/docker/machine/issues/859/labels{/name}","comments_url":"https://api.github.com/repos/docker/machine/issues/859/comments","events_url":"https://api.github.com/repos/docker/machine/issues/859/events","html_url":"https://github.com/docker/machine/pull/859","id":63835099,"number":859,"title":"Fix location of validating hostname functionality","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},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-23T21:19:10Z","updated_at":"2015-03-24T03:01:51Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/machine/pulls/859","html_url":"https://github.com/docker/machine/pull/859","diff_url":"https://github.com/docker/machine/pull/859.diff","patch_url":"https://github.com/docker/machine/pull/859.patch"},"body":"Similar in functionality to #807 (thanks for the tipoff @crunchywelch!), I'd prefer to validate the hostname before we attempt to make the host / serialize it to disk at all.\r\n\r\nThere seems to be no need for multiple returns as the regex match only returns bool, so I've updated that as well.\r\n\r\ncc @ehazlett @sthulb \r\n\r\nSigned-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>"},"comment":{"url":"https://api.github.com/repos/docker/machine/issues/comments/85318348","html_url":"https://github.com/docker/machine/pull/859#issuecomment-85318348","issue_url":"https://api.github.com/repos/docker/machine/issues/859","id":85318348,"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},"created_at":"2015-03-24T03:01:50Z","updated_at":"2015-03-24T03:01:50Z","body":"I don't think this is related to your PR but should we be showing the entire help test for an invalid hostname?"}}