{"action":"created","comment":{"url":"https://api.github.com/repos/Mirantis/virtlet/pulls/comments/82826199","pull_request_review_id":3706131,"id":82826199,"diff_hunk":"@@ -294,6 +312,30 @@ func (v *VirtualizationTool) CreateContainer(in *kubeapi.CreateContainerRequest,\n \treturn uuid, nil\n }\n \n+func (v *VirtualizationTool) GetDomainByName(name string) (C.virDomainPtr, error) {\n+\tcName := C.CString(name)\n+\tdefer C.free(unsafe.Pointer(cName))\n+\n+\tdomain := C.virDomainLookupByName(v.conn, cName)\n+\n+\tif domain == nil {\n+\t\treturn nil, GetLastError()\n+\t}\n+\n+\treturn domain, nil\n+}\n+\n+// Returns -1 in case of error, 0 in case of success","path":"pkg/libvirttools/virtualization.go","position":72,"original_position":72,"commit_id":"e3d5cfa1fe49b19d78f359251a43a9247dc97b2b","original_commit_id":"e3d5cfa1fe49b19d78f359251a43a9247dc97b2b","user":{"login":"jellonek","id":658436,"avatar_url":"https://avatars.githubusercontent.com/u/658436?v=3","gravatar_id":"","url":"https://api.github.com/users/jellonek","html_url":"https://github.com/jellonek","followers_url":"https://api.github.com/users/jellonek/followers","following_url":"https://api.github.com/users/jellonek/following{/other_user}","gists_url":"https://api.github.com/users/jellonek/gists{/gist_id}","starred_url":"https://api.github.com/users/jellonek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jellonek/subscriptions","organizations_url":"https://api.github.com/users/jellonek/orgs","repos_url":"https://api.github.com/users/jellonek/repos","events_url":"https://api.github.com/users/jellonek/events{/privacy}","received_events_url":"https://api.github.com/users/jellonek/received_events","type":"User","site_admin":false},"body":"Wrong comment.","created_at":"2016-10-11T15:55:10Z","updated_at":"2016-10-11T15:55:10Z","html_url":"https://github.com/Mirantis/virtlet/pull/80#discussion_r82826199","pull_request_url":"https://api.github.com/repos/Mirantis/virtlet/pulls/80","_links":{"self":{"href":"https://api.github.com/repos/Mirantis/virtlet/pulls/comments/82826199"},"html":{"href":"https://github.com/Mirantis/virtlet/pull/80#discussion_r82826199"},"pull_request":{"href":"https://api.github.com/repos/Mirantis/virtlet/pulls/80"}}},"pull_request":{"url":"https://api.github.com/repos/Mirantis/virtlet/pulls/80","id":88812749,"html_url":"https://github.com/Mirantis/virtlet/pull/80","diff_url":"https://github.com/Mirantis/virtlet/pull/80.diff","patch_url":"https://github.com/Mirantis/virtlet/pull/80.patch","issue_url":"https://api.github.com/repos/Mirantis/virtlet/issues/80","number":80,"state":"open","locked":false,"title":"Fixed volume and domain existence errors","user":{"login":"vefimova","id":11852061,"avatar_url":"https://avatars.githubusercontent.com/u/11852061?v=3","gravatar_id":"","url":"https://api.github.com/users/vefimova","html_url":"https://github.com/vefimova","followers_url":"https://api.github.com/users/vefimova/followers","following_url":"https://api.github.com/users/vefimova/following{/other_user}","gists_url":"https://api.github.com/users/vefimova/gists{/gist_id}","starred_url":"https://api.github.com/users/vefimova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vefimova/subscriptions","organizations_url":"https://api.github.com/users/vefimova/orgs","repos_url":"https://api.github.com/users/vefimova/repos","events_url":"https://api.github.com/users/vefimova/events{/privacy}","received_events_url":"https://api.github.com/users/vefimova/received_events","type":"User","site_admin":false},"body":"- Checking of volume existence added on volume creation.\r\n- Volume deletion added on domain destroying (corresponding issue #38).\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/mirantis/virtlet/80)\n<!-- Reviewable:end -->\n","created_at":"2016-10-11T11:07:03Z","updated_at":"2016-10-11T15:55:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"977ea2bd6d843e304dbbf7aca3320638cb3fd874","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Mirantis/virtlet/pulls/80/commits","review_comments_url":"https://api.github.com/repos/Mirantis/virtlet/pulls/80/comments","review_comment_url":"https://api.github.com/repos/Mirantis/virtlet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Mirantis/virtlet/issues/80/comments","statuses_url":"https://api.github.com/repos/Mirantis/virtlet/statuses/e3d5cfa1fe49b19d78f359251a43a9247dc97b2b","head":{"label":"vefimova:vol_delete","ref":"vol_delete","sha":"e3d5cfa1fe49b19d78f359251a43a9247dc97b2b","user":{"login":"vefimova","id":11852061,"avatar_url":"https://avatars.githubusercontent.com/u/11852061?v=3","gravatar_id":"","url":"https://api.github.com/users/vefimova","html_url":"https://github.com/vefimova","followers_url":"https://api.github.com/users/vefimova/followers","following_url":"https://api.github.com/users/vefimova/following{/other_user}","gists_url":"https://api.github.com/users/vefimova/gists{/gist_id}","starred_url":"https://api.github.com/users/vefimova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vefimova/subscriptions","organizations_url":"https://api.github.com/users/vefimova/orgs","repos_url":"https://api.github.com/users/vefimova/repos","events_url":"https://api.github.com/users/vefimova/events{/privacy}","received_events_url":"https://api.github.com/users/vefimova/received_events","type":"User","site_admin":false},"repo":{"id":67505006,"name":"virtlet","full_name":"vefimova/virtlet","owner":{"login":"vefimova","id":11852061,"avatar_url":"https://avatars.githubusercontent.com/u/11852061?v=3","gravatar_id":"","url":"https://api.github.com/users/vefimova","html_url":"https://github.com/vefimova","followers_url":"https://api.github.com/users/vefimova/followers","following_url":"https://api.github.com/users/vefimova/following{/other_user}","gists_url":"https://api.github.com/users/vefimova/gists{/gist_id}","starred_url":"https://api.github.com/users/vefimova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vefimova/subscriptions","organizations_url":"https://api.github.com/users/vefimova/orgs","repos_url":"https://api.github.com/users/vefimova/repos","events_url":"https://api.github.com/users/vefimova/events{/privacy}","received_events_url":"https://api.github.com/users/vefimova/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vefimova/virtlet","description":null,"fork":true,"url":"https://api.github.com/repos/vefimova/virtlet","forks_url":"https://api.github.com/repos/vefimova/virtlet/forks","keys_url":"https://api.github.com/repos/vefimova/virtlet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vefimova/virtlet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vefimova/virtlet/teams","hooks_url":"https://api.github.com/repos/vefimova/virtlet/hooks","issue_events_url":"https://api.github.com/repos/vefimova/virtlet/issues/events{/number}","events_url":"https://api.github.com/repos/vefimova/virtlet/events","assignees_url":"https://api.github.com/repos/vefimova/virtlet/assignees{/user}","branches_url":"https://api.github.com/repos/vefimova/virtlet/branches{/branch}","tags_url":"https://api.github.com/repos/vefimova/virtlet/tags","blobs_url":"https://api.github.com/repos/vefimova/virtlet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vefimova/virtlet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vefimova/virtlet/git/refs{/sha}","trees_url":"https://api.github.com/repos/vefimova/virtlet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vefimova/virtlet/statuses/{sha}","languages_url":"https://api.github.com/repos/vefimova/virtlet/languages","stargazers_url":"https://api.github.com/repos/vefimova/virtlet/stargazers","contributors_url":"https://api.github.com/repos/vefimova/virtlet/contributors","subscribers_url":"https://api.github.com/repos/vefimova/virtlet/subscribers","subscription_url":"https://api.github.com/repos/vefimova/virtlet/subscription","commits_url":"https://api.github.com/repos/vefimova/virtlet/commits{/sha}","git_commits_url":"https://api.github.com/repos/vefimova/virtlet/git/commits{/sha}","comments_url":"https://api.github.com/repos/vefimova/virtlet/comments{/number}","issue_comment_url":"https://api.github.com/repos/vefimova/virtlet/issues/comments{/number}","contents_url":"https://api.github.com/repos/vefimova/virtlet/contents/{+path}","compare_url":"https://api.github.com/repos/vefimova/virtlet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vefimova/virtlet/merges","archive_url":"https://api.github.com/repos/vefimova/virtlet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vefimova/virtlet/downloads","issues_url":"https://api.github.com/repos/vefimova/virtlet/issues{/number}","pulls_url":"https://api.github.com/repos/vefimova/virtlet/pulls{/number}","milestones_url":"https://api.github.com/repos/vefimova/virtlet/milestones{/number}","notifications_url":"https://api.github.com/repos/vefimova/virtlet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vefimova/virtlet/labels{/name}","releases_url":"https://api.github.com/repos/vefimova/virtlet/releases{/id}","deployments_url":"https://api.github.com/repos/vefimova/virtlet/deployments","created_at":"2016-09-06T12:13:31Z","updated_at":"2016-09-06T12:13:32Z","pushed_at":"2016-10-11T15:45:49Z","git_url":"git://github.com/vefimova/virtlet.git","ssh_url":"git@github.com:vefimova/virtlet.git","clone_url":"https://github.com/vefimova/virtlet.git","svn_url":"https://github.com/vefimova/virtlet","homepage":null,"size":1439,"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":"Mirantis:master","ref":"master","sha":"d2ae9e09077fcdb8f08d1177a4c57eda28a954f1","user":{"login":"Mirantis","id":609319,"avatar_url":"https://avatars.githubusercontent.com/u/609319?v=3","gravatar_id":"","url":"https://api.github.com/users/Mirantis","html_url":"https://github.com/Mirantis","followers_url":"https://api.github.com/users/Mirantis/followers","following_url":"https://api.github.com/users/Mirantis/following{/other_user}","gists_url":"https://api.github.com/users/Mirantis/gists{/gist_id}","starred_url":"https://api.github.com/users/Mirantis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mirantis/subscriptions","organizations_url":"https://api.github.com/users/Mirantis/orgs","repos_url":"https://api.github.com/users/Mirantis/repos","events_url":"https://api.github.com/users/Mirantis/events{/privacy}","received_events_url":"https://api.github.com/users/Mirantis/received_events","type":"Organization","site_admin":false},"repo":{"id":66279588,"name":"virtlet","full_name":"Mirantis/virtlet","owner":{"login":"Mirantis","id":609319,"avatar_url":"https://avatars.githubusercontent.com/u/609319?v=3","gravatar_id":"","url":"https://api.github.com/users/Mirantis","html_url":"https://github.com/Mirantis","followers_url":"https://api.github.com/users/Mirantis/followers","following_url":"https://api.github.com/users/Mirantis/following{/other_user}","gists_url":"https://api.github.com/users/Mirantis/gists{/gist_id}","starred_url":"https://api.github.com/users/Mirantis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mirantis/subscriptions","organizations_url":"https://api.github.com/users/Mirantis/orgs","repos_url":"https://api.github.com/users/Mirantis/repos","events_url":"https://api.github.com/users/Mirantis/events{/privacy}","received_events_url":"https://api.github.com/users/Mirantis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Mirantis/virtlet","description":null,"fork":false,"url":"https://api.github.com/repos/Mirantis/virtlet","forks_url":"https://api.github.com/repos/Mirantis/virtlet/forks","keys_url":"https://api.github.com/repos/Mirantis/virtlet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Mirantis/virtlet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Mirantis/virtlet/teams","hooks_url":"https://api.github.com/repos/Mirantis/virtlet/hooks","issue_events_url":"https://api.github.com/repos/Mirantis/virtlet/issues/events{/number}","events_url":"https://api.github.com/repos/Mirantis/virtlet/events","assignees_url":"https://api.github.com/repos/Mirantis/virtlet/assignees{/user}","branches_url":"https://api.github.com/repos/Mirantis/virtlet/branches{/branch}","tags_url":"https://api.github.com/repos/Mirantis/virtlet/tags","blobs_url":"https://api.github.com/repos/Mirantis/virtlet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Mirantis/virtlet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Mirantis/virtlet/git/refs{/sha}","trees_url":"https://api.github.com/repos/Mirantis/virtlet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Mirantis/virtlet/statuses/{sha}","languages_url":"https://api.github.com/repos/Mirantis/virtlet/languages","stargazers_url":"https://api.github.com/repos/Mirantis/virtlet/stargazers","contributors_url":"https://api.github.com/repos/Mirantis/virtlet/contributors","subscribers_url":"https://api.github.com/repos/Mirantis/virtlet/subscribers","subscription_url":"https://api.github.com/repos/Mirantis/virtlet/subscription","commits_url":"https://api.github.com/repos/Mirantis/virtlet/commits{/sha}","git_commits_url":"https://api.github.com/repos/Mirantis/virtlet/git/commits{/sha}","comments_url":"https://api.github.com/repos/Mirantis/virtlet/comments{/number}","issue_comment_url":"https://api.github.com/repos/Mirantis/virtlet/issues/comments{/number}","contents_url":"https://api.github.com/repos/Mirantis/virtlet/contents/{+path}","compare_url":"https://api.github.com/repos/Mirantis/virtlet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Mirantis/virtlet/merges","archive_url":"https://api.github.com/repos/Mirantis/virtlet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Mirantis/virtlet/downloads","issues_url":"https://api.github.com/repos/Mirantis/virtlet/issues{/number}","pulls_url":"https://api.github.com/repos/Mirantis/virtlet/pulls{/number}","milestones_url":"https://api.github.com/repos/Mirantis/virtlet/milestones{/number}","notifications_url":"https://api.github.com/repos/Mirantis/virtlet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Mirantis/virtlet/labels{/name}","releases_url":"https://api.github.com/repos/Mirantis/virtlet/releases{/id}","deployments_url":"https://api.github.com/repos/Mirantis/virtlet/deployments","created_at":"2016-08-22T14:27:13Z","updated_at":"2016-10-05T08:10:26Z","pushed_at":"2016-10-11T15:45:54Z","git_url":"git://github.com/Mirantis/virtlet.git","ssh_url":"git@github.com:Mirantis/virtlet.git","clone_url":"https://github.com/Mirantis/virtlet.git","svn_url":"https://github.com/Mirantis/virtlet","homepage":null,"size":1984,"stargazers_count":4,"watchers_count":4,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":16,"forks":5,"open_issues":16,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Mirantis/virtlet/pulls/80"},"html":{"href":"https://github.com/Mirantis/virtlet/pull/80"},"issue":{"href":"https://api.github.com/repos/Mirantis/virtlet/issues/80"},"comments":{"href":"https://api.github.com/repos/Mirantis/virtlet/issues/80/comments"},"review_comments":{"href":"https://api.github.com/repos/Mirantis/virtlet/pulls/80/comments"},"review_comment":{"href":"https://api.github.com/repos/Mirantis/virtlet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Mirantis/virtlet/pulls/80/commits"},"statuses":{"href":"https://api.github.com/repos/Mirantis/virtlet/statuses/e3d5cfa1fe49b19d78f359251a43a9247dc97b2b"}}}}
{"actor":{"display_login":"jellonek"}}