{"action":"created","issue":{"url":"https://api.github.com/repos/OpenNebula/addon-context-linux/issues/28","repository_url":"https://api.github.com/repos/OpenNebula/addon-context-linux","labels_url":"https://api.github.com/repos/OpenNebula/addon-context-linux/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/OpenNebula/addon-context-linux/issues/28/comments","events_url":"https://api.github.com/repos/OpenNebula/addon-context-linux/issues/28/events","html_url":"https://github.com/OpenNebula/addon-context-linux/pull/28","id":132794078,"number":28,"title":"Replace unsafe characters in SET_HOSTNAME.","user":{"login":"jamtaylo","id":16323934,"avatar_url":"https://avatars.githubusercontent.com/u/16323934?v=3","gravatar_id":"","url":"https://api.github.com/users/jamtaylo","html_url":"https://github.com/jamtaylo","followers_url":"https://api.github.com/users/jamtaylo/followers","following_url":"https://api.github.com/users/jamtaylo/following{/other_user}","gists_url":"https://api.github.com/users/jamtaylo/gists{/gist_id}","starred_url":"https://api.github.com/users/jamtaylo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamtaylo/subscriptions","organizations_url":"https://api.github.com/users/jamtaylo/orgs","repos_url":"https://api.github.com/users/jamtaylo/repos","events_url":"https://api.github.com/users/jamtaylo/events{/privacy}","received_events_url":"https://api.github.com/users/jamtaylo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-10T19:27:07Z","updated_at":"2016-03-10T10:05:09Z","closed_at":"2016-03-10T10:04:52Z","pull_request":{"url":"https://api.github.com/repos/OpenNebula/addon-context-linux/pulls/28","html_url":"https://github.com/OpenNebula/addon-context-linux/pull/28","diff_url":"https://github.com/OpenNebula/addon-context-linux/pull/28.diff","patch_url":"https://github.com/OpenNebula/addon-context-linux/pull/28.patch"},"body":"When setting the hostname from `$SET_HOSTNAME`, replace any characters\r\nnot allowed in hostnames (as specified in RFC 952) with a hyphen.\r\nThis is enables a VM template to safely use the VM's name as the\r\nhostname (by setting the context variable `SET_HOSTNAME=$NAME`)."},"comment":{"url":"https://api.github.com/repos/OpenNebula/addon-context-linux/issues/comments/194768071","html_url":"https://github.com/OpenNebula/addon-context-linux/pull/28#issuecomment-194768071","issue_url":"https://api.github.com/repos/OpenNebula/addon-context-linux/issues/28","id":194768071,"user":{"login":"jfontan","id":1829,"avatar_url":"https://avatars.githubusercontent.com/u/1829?v=3","gravatar_id":"","url":"https://api.github.com/users/jfontan","html_url":"https://github.com/jfontan","followers_url":"https://api.github.com/users/jfontan/followers","following_url":"https://api.github.com/users/jfontan/following{/other_user}","gists_url":"https://api.github.com/users/jfontan/gists{/gist_id}","starred_url":"https://api.github.com/users/jfontan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfontan/subscriptions","organizations_url":"https://api.github.com/users/jfontan/orgs","repos_url":"https://api.github.com/users/jfontan/repos","events_url":"https://api.github.com/users/jfontan/events{/privacy}","received_events_url":"https://api.github.com/users/jfontan/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T10:05:09Z","updated_at":"2016-03-10T10:05:09Z","body":"Great, thanks!"}}