{"action":"created","comment":{"url":"https://api.github.com/repos/hsbt/kakine/pulls/comments/31000102","id":31000102,"diff_hunk":"@@ -12,7 +13,13 @@ def create_rule(security_group_id, direction, attributes)\n \n         data = {}\n         attributes.each{|k,v| data[k.to_sym] = v}\n-        Fog::Network[:openstack].create_security_group_rule(security_group_id, direction, data)\n+        begin\n+          Fog::Network[:openstack].create_security_group_rule(security_group_id, direction, data)\n+        rescue Excon::Errors::Conflict => e","path":"lib/kakine/adapter/real.rb","position":23,"original_position":23,"commit_id":"54b509edbe6533cdbcedb1a7b84bf5abc66b3008","original_commit_id":"54b509edbe6533cdbcedb1a7b84bf5abc66b3008","user":{"login":"hsbt","id":12301,"avatar_url":"https://avatars.githubusercontent.com/u/12301?v=3","gravatar_id":"","url":"https://api.github.com/users/hsbt","html_url":"https://github.com/hsbt","followers_url":"https://api.github.com/users/hsbt/followers","following_url":"https://api.github.com/users/hsbt/following{/other_user}","gists_url":"https://api.github.com/users/hsbt/gists{/gist_id}","starred_url":"https://api.github.com/users/hsbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsbt/subscriptions","organizations_url":"https://api.github.com/users/hsbt/orgs","repos_url":"https://api.github.com/users/hsbt/repos","events_url":"https://api.github.com/users/hsbt/events{/privacy}","received_events_url":"https://api.github.com/users/hsbt/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2015-05-26T01:39:43Z","updated_at":"2015-05-26T01:39:43Z","html_url":"https://github.com/hsbt/kakine/pull/5#discussion_r31000102","pull_request_url":"https://api.github.com/repos/hsbt/kakine/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/hsbt/kakine/pulls/comments/31000102"},"html":{"href":"https://github.com/hsbt/kakine/pull/5#discussion_r31000102"},"pull_request":{"href":"https://api.github.com/repos/hsbt/kakine/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/hsbt/kakine/pulls/5","id":36104795,"html_url":"https://github.com/hsbt/kakine/pull/5","diff_url":"https://github.com/hsbt/kakine/pull/5.diff","patch_url":"https://github.com/hsbt/kakine/pull/5.patch","issue_url":"https://api.github.com/repos/hsbt/kakine/issues/5","number":5,"state":"open","locked":false,"title":"Support icmp code","user":{"login":"ka-yamashita","id":8022082,"avatar_url":"https://avatars.githubusercontent.com/u/8022082?v=3","gravatar_id":"","url":"https://api.github.com/users/ka-yamashita","html_url":"https://github.com/ka-yamashita","followers_url":"https://api.github.com/users/ka-yamashita/followers","following_url":"https://api.github.com/users/ka-yamashita/following{/other_user}","gists_url":"https://api.github.com/users/ka-yamashita/gists{/gist_id}","starred_url":"https://api.github.com/users/ka-yamashita/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ka-yamashita/subscriptions","organizations_url":"https://api.github.com/users/ka-yamashita/orgs","repos_url":"https://api.github.com/users/ka-yamashita/repos","events_url":"https://api.github.com/users/ka-yamashita/events{/privacy}","received_events_url":"https://api.github.com/users/ka-yamashita/received_events","type":"User","site_admin":false},"body":"## このPRでは下記のことを作業しています\r\n* 差分の取得をHashDiffではなくオブジェクトでの比較とした\r\n* SGの対象がセキュリティグループであった場合に、ethが判別されない不具合を修正\r\n* 読み込んだyamlファイルのSGごとの必須項目チェックを行う\r\n* HTTP 409エラーをサポート\r\n* ICMPのType,Code記法をサポート","created_at":"2015-05-24T16:26:39Z","updated_at":"2015-05-26T01:39:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cc605c247a63f35395f3b85c532f02b992b8a4ba","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hsbt/kakine/pulls/5/commits","review_comments_url":"https://api.github.com/repos/hsbt/kakine/pulls/5/comments","review_comment_url":"https://api.github.com/repos/hsbt/kakine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hsbt/kakine/issues/5/comments","statuses_url":"https://api.github.com/repos/hsbt/kakine/statuses/54b509edbe6533cdbcedb1a7b84bf5abc66b3008","head":{"label":"hsbt:support-icmp-code","ref":"support-icmp-code","sha":"54b509edbe6533cdbcedb1a7b84bf5abc66b3008","user":{"login":"hsbt","id":12301,"avatar_url":"https://avatars.githubusercontent.com/u/12301?v=3","gravatar_id":"","url":"https://api.github.com/users/hsbt","html_url":"https://github.com/hsbt","followers_url":"https://api.github.com/users/hsbt/followers","following_url":"https://api.github.com/users/hsbt/following{/other_user}","gists_url":"https://api.github.com/users/hsbt/gists{/gist_id}","starred_url":"https://api.github.com/users/hsbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsbt/subscriptions","organizations_url":"https://api.github.com/users/hsbt/orgs","repos_url":"https://api.github.com/users/hsbt/repos","events_url":"https://api.github.com/users/hsbt/events{/privacy}","received_events_url":"https://api.github.com/users/hsbt/received_events","type":"User","site_admin":false},"repo":{"id":34443574,"name":"kakine","full_name":"hsbt/kakine","owner":{"login":"hsbt","id":12301,"avatar_url":"https://avatars.githubusercontent.com/u/12301?v=3","gravatar_id":"","url":"https://api.github.com/users/hsbt","html_url":"https://github.com/hsbt","followers_url":"https://api.github.com/users/hsbt/followers","following_url":"https://api.github.com/users/hsbt/following{/other_user}","gists_url":"https://api.github.com/users/hsbt/gists{/gist_id}","starred_url":"https://api.github.com/users/hsbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsbt/subscriptions","organizations_url":"https://api.github.com/users/hsbt/orgs","repos_url":"https://api.github.com/users/hsbt/repos","events_url":"https://api.github.com/users/hsbt/events{/privacy}","received_events_url":"https://api.github.com/users/hsbt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hsbt/kakine","description":"Security group mangement tool on Openstack","fork":false,"url":"https://api.github.com/repos/hsbt/kakine","forks_url":"https://api.github.com/repos/hsbt/kakine/forks","keys_url":"https://api.github.com/repos/hsbt/kakine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hsbt/kakine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hsbt/kakine/teams","hooks_url":"https://api.github.com/repos/hsbt/kakine/hooks","issue_events_url":"https://api.github.com/repos/hsbt/kakine/issues/events{/number}","events_url":"https://api.github.com/repos/hsbt/kakine/events","assignees_url":"https://api.github.com/repos/hsbt/kakine/assignees{/user}","branches_url":"https://api.github.com/repos/hsbt/kakine/branches{/branch}","tags_url":"https://api.github.com/repos/hsbt/kakine/tags","blobs_url":"https://api.github.com/repos/hsbt/kakine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hsbt/kakine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hsbt/kakine/git/refs{/sha}","trees_url":"https://api.github.com/repos/hsbt/kakine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hsbt/kakine/statuses/{sha}","languages_url":"https://api.github.com/repos/hsbt/kakine/languages","stargazers_url":"https://api.github.com/repos/hsbt/kakine/stargazers","contributors_url":"https://api.github.com/repos/hsbt/kakine/contributors","subscribers_url":"https://api.github.com/repos/hsbt/kakine/subscribers","subscription_url":"https://api.github.com/repos/hsbt/kakine/subscription","commits_url":"https://api.github.com/repos/hsbt/kakine/commits{/sha}","git_commits_url":"https://api.github.com/repos/hsbt/kakine/git/commits{/sha}","comments_url":"https://api.github.com/repos/hsbt/kakine/comments{/number}","issue_comment_url":"https://api.github.com/repos/hsbt/kakine/issues/comments{/number}","contents_url":"https://api.github.com/repos/hsbt/kakine/contents/{+path}","compare_url":"https://api.github.com/repos/hsbt/kakine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hsbt/kakine/merges","archive_url":"https://api.github.com/repos/hsbt/kakine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hsbt/kakine/downloads","issues_url":"https://api.github.com/repos/hsbt/kakine/issues{/number}","pulls_url":"https://api.github.com/repos/hsbt/kakine/pulls{/number}","milestones_url":"https://api.github.com/repos/hsbt/kakine/milestones{/number}","notifications_url":"https://api.github.com/repos/hsbt/kakine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hsbt/kakine/labels{/name}","releases_url":"https://api.github.com/repos/hsbt/kakine/releases{/id}","created_at":"2015-04-23T08:22:33Z","updated_at":"2015-05-18T02:40:26Z","pushed_at":"2015-05-25T15:21:50Z","git_url":"git://github.com/hsbt/kakine.git","ssh_url":"git@github.com:hsbt/kakine.git","clone_url":"https://github.com/hsbt/kakine.git","svn_url":"https://github.com/hsbt/kakine","homepage":"","size":461,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":3,"default_branch":"master"}},"base":{"label":"hsbt:master","ref":"master","sha":"f1fd4f1f5b9f7fd2be75bbac60ef3221c03feb04","user":{"login":"hsbt","id":12301,"avatar_url":"https://avatars.githubusercontent.com/u/12301?v=3","gravatar_id":"","url":"https://api.github.com/users/hsbt","html_url":"https://github.com/hsbt","followers_url":"https://api.github.com/users/hsbt/followers","following_url":"https://api.github.com/users/hsbt/following{/other_user}","gists_url":"https://api.github.com/users/hsbt/gists{/gist_id}","starred_url":"https://api.github.com/users/hsbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsbt/subscriptions","organizations_url":"https://api.github.com/users/hsbt/orgs","repos_url":"https://api.github.com/users/hsbt/repos","events_url":"https://api.github.com/users/hsbt/events{/privacy}","received_events_url":"https://api.github.com/users/hsbt/received_events","type":"User","site_admin":false},"repo":{"id":34443574,"name":"kakine","full_name":"hsbt/kakine","owner":{"login":"hsbt","id":12301,"avatar_url":"https://avatars.githubusercontent.com/u/12301?v=3","gravatar_id":"","url":"https://api.github.com/users/hsbt","html_url":"https://github.com/hsbt","followers_url":"https://api.github.com/users/hsbt/followers","following_url":"https://api.github.com/users/hsbt/following{/other_user}","gists_url":"https://api.github.com/users/hsbt/gists{/gist_id}","starred_url":"https://api.github.com/users/hsbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hsbt/subscriptions","organizations_url":"https://api.github.com/users/hsbt/orgs","repos_url":"https://api.github.com/users/hsbt/repos","events_url":"https://api.github.com/users/hsbt/events{/privacy}","received_events_url":"https://api.github.com/users/hsbt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hsbt/kakine","description":"Security group mangement tool on Openstack","fork":false,"url":"https://api.github.com/repos/hsbt/kakine","forks_url":"https://api.github.com/repos/hsbt/kakine/forks","keys_url":"https://api.github.com/repos/hsbt/kakine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hsbt/kakine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hsbt/kakine/teams","hooks_url":"https://api.github.com/repos/hsbt/kakine/hooks","issue_events_url":"https://api.github.com/repos/hsbt/kakine/issues/events{/number}","events_url":"https://api.github.com/repos/hsbt/kakine/events","assignees_url":"https://api.github.com/repos/hsbt/kakine/assignees{/user}","branches_url":"https://api.github.com/repos/hsbt/kakine/branches{/branch}","tags_url":"https://api.github.com/repos/hsbt/kakine/tags","blobs_url":"https://api.github.com/repos/hsbt/kakine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hsbt/kakine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hsbt/kakine/git/refs{/sha}","trees_url":"https://api.github.com/repos/hsbt/kakine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hsbt/kakine/statuses/{sha}","languages_url":"https://api.github.com/repos/hsbt/kakine/languages","stargazers_url":"https://api.github.com/repos/hsbt/kakine/stargazers","contributors_url":"https://api.github.com/repos/hsbt/kakine/contributors","subscribers_url":"https://api.github.com/repos/hsbt/kakine/subscribers","subscription_url":"https://api.github.com/repos/hsbt/kakine/subscription","commits_url":"https://api.github.com/repos/hsbt/kakine/commits{/sha}","git_commits_url":"https://api.github.com/repos/hsbt/kakine/git/commits{/sha}","comments_url":"https://api.github.com/repos/hsbt/kakine/comments{/number}","issue_comment_url":"https://api.github.com/repos/hsbt/kakine/issues/comments{/number}","contents_url":"https://api.github.com/repos/hsbt/kakine/contents/{+path}","compare_url":"https://api.github.com/repos/hsbt/kakine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hsbt/kakine/merges","archive_url":"https://api.github.com/repos/hsbt/kakine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hsbt/kakine/downloads","issues_url":"https://api.github.com/repos/hsbt/kakine/issues{/number}","pulls_url":"https://api.github.com/repos/hsbt/kakine/pulls{/number}","milestones_url":"https://api.github.com/repos/hsbt/kakine/milestones{/number}","notifications_url":"https://api.github.com/repos/hsbt/kakine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hsbt/kakine/labels{/name}","releases_url":"https://api.github.com/repos/hsbt/kakine/releases{/id}","created_at":"2015-04-23T08:22:33Z","updated_at":"2015-05-18T02:40:26Z","pushed_at":"2015-05-25T15:21:50Z","git_url":"git://github.com/hsbt/kakine.git","ssh_url":"git@github.com:hsbt/kakine.git","clone_url":"https://github.com/hsbt/kakine.git","svn_url":"https://github.com/hsbt/kakine","homepage":"","size":461,"stargazers_count":3,"watchers_count":3,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":1,"forks":2,"open_issues":1,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hsbt/kakine/pulls/5"},"html":{"href":"https://github.com/hsbt/kakine/pull/5"},"issue":{"href":"https://api.github.com/repos/hsbt/kakine/issues/5"},"comments":{"href":"https://api.github.com/repos/hsbt/kakine/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/hsbt/kakine/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/hsbt/kakine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hsbt/kakine/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/hsbt/kakine/statuses/54b509edbe6533cdbcedb1a7b84bf5abc66b3008"}}}}