{"action":"created","comment":{"url":"https://api.github.com/repos/ManageIQ/wrapanapi/pulls/comments/123495608","pull_request_review_id":45703211,"id":123495608,"diff_hunk":"@@ -591,3 +603,27 @@ def copy_image(self, source_region, source_image, image_id):\n         except Exception:\n             self.logger.exception(\"Copy of {} image failed.\".format(source_image))\n             return False\n+\n+    def list_topics(self):\n+        return self.sns_connection.list_topics()\n+\n+    def get_arn_if_topic_exists(self, topic_name):\n+        topics = self.list_topics()\n+        topic_found = [\n+            t.get('TopicArn')\n+            for t in topics.get('Topics')\n+            if t.get('TopicArn').split(':')[-1] == topic_name]","path":"wrapanapi/ec2.py","position":null,"original_position":39,"commit_id":"1a39c89e55d5f9a17eb5289220a883aa1416b539","original_commit_id":"e54f61ba1eefc6041cc1c06959ce32dbe96baf0a","user":{"login":"mmojzis","id":19479861,"avatar_url":"https://avatars3.githubusercontent.com/u/19479861?v=3","gravatar_id":"","url":"https://api.github.com/users/mmojzis","html_url":"https://github.com/mmojzis","followers_url":"https://api.github.com/users/mmojzis/followers","following_url":"https://api.github.com/users/mmojzis/following{/other_user}","gists_url":"https://api.github.com/users/mmojzis/gists{/gist_id}","starred_url":"https://api.github.com/users/mmojzis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmojzis/subscriptions","organizations_url":"https://api.github.com/users/mmojzis/orgs","repos_url":"https://api.github.com/users/mmojzis/repos","events_url":"https://api.github.com/users/mmojzis/events{/privacy}","received_events_url":"https://api.github.com/users/mmojzis/received_events","type":"User","site_admin":false},"body":"Added description why I parse it and ARN format.","created_at":"2017-06-22T12:26:03Z","updated_at":"2017-06-22T12:26:04Z","html_url":"https://github.com/ManageIQ/wrapanapi/pull/139#discussion_r123495608","pull_request_url":"https://api.github.com/repos/ManageIQ/wrapanapi/pulls/139","_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/wrapanapi/pulls/comments/123495608"},"html":{"href":"https://github.com/ManageIQ/wrapanapi/pull/139#discussion_r123495608"},"pull_request":{"href":"https://api.github.com/repos/ManageIQ/wrapanapi/pulls/139"}}},"pull_request":{"url":"https://api.github.com/repos/ManageIQ/wrapanapi/pulls/139","id":126569810,"html_url":"https://github.com/ManageIQ/wrapanapi/pull/139","diff_url":"https://github.com/ManageIQ/wrapanapi/pull/139.diff","patch_url":"https://github.com/ManageIQ/wrapanapi/pull/139.patch","issue_url":"https://api.github.com/repos/ManageIQ/wrapanapi/issues/139","number":139,"state":"open","locked":false,"title":"Added SNS topic methods & bucket delete","user":{"login":"mmojzis","id":19479861,"avatar_url":"https://avatars3.githubusercontent.com/u/19479861?v=3","gravatar_id":"","url":"https://api.github.com/users/mmojzis","html_url":"https://github.com/mmojzis","followers_url":"https://api.github.com/users/mmojzis/followers","following_url":"https://api.github.com/users/mmojzis/following{/other_user}","gists_url":"https://api.github.com/users/mmojzis/gists{/gist_id}","starred_url":"https://api.github.com/users/mmojzis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmojzis/subscriptions","organizations_url":"https://api.github.com/users/mmojzis/orgs","repos_url":"https://api.github.com/users/mmojzis/repos","events_url":"https://api.github.com/users/mmojzis/events{/privacy}","received_events_url":"https://api.github.com/users/mmojzis/received_events","type":"User","site_admin":false},"body":"Tested with automated tests done by me","created_at":"2017-06-20T15:58:27Z","updated_at":"2017-06-22T12:26:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0ffd12f9f24fcdd55b2711a22c1cf6fa43d917e9","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/ManageIQ/wrapanapi/pulls/139/commits","review_comments_url":"https://api.github.com/repos/ManageIQ/wrapanapi/pulls/139/comments","review_comment_url":"https://api.github.com/repos/ManageIQ/wrapanapi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ManageIQ/wrapanapi/issues/139/comments","statuses_url":"https://api.github.com/repos/ManageIQ/wrapanapi/statuses/1a39c89e55d5f9a17eb5289220a883aa1416b539","head":{"label":"mmojzis:sns_topics","ref":"sns_topics","sha":"1a39c89e55d5f9a17eb5289220a883aa1416b539","user":{"login":"mmojzis","id":19479861,"avatar_url":"https://avatars3.githubusercontent.com/u/19479861?v=3","gravatar_id":"","url":"https://api.github.com/users/mmojzis","html_url":"https://github.com/mmojzis","followers_url":"https://api.github.com/users/mmojzis/followers","following_url":"https://api.github.com/users/mmojzis/following{/other_user}","gists_url":"https://api.github.com/users/mmojzis/gists{/gist_id}","starred_url":"https://api.github.com/users/mmojzis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmojzis/subscriptions","organizations_url":"https://api.github.com/users/mmojzis/orgs","repos_url":"https://api.github.com/users/mmojzis/repos","events_url":"https://api.github.com/users/mmojzis/events{/privacy}","received_events_url":"https://api.github.com/users/mmojzis/received_events","type":"User","site_admin":false},"repo":{"id":70811225,"name":"wrapanapi","full_name":"mmojzis/wrapanapi","owner":{"login":"mmojzis","id":19479861,"avatar_url":"https://avatars3.githubusercontent.com/u/19479861?v=3","gravatar_id":"","url":"https://api.github.com/users/mmojzis","html_url":"https://github.com/mmojzis","followers_url":"https://api.github.com/users/mmojzis/followers","following_url":"https://api.github.com/users/mmojzis/following{/other_user}","gists_url":"https://api.github.com/users/mmojzis/gists{/gist_id}","starred_url":"https://api.github.com/users/mmojzis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmojzis/subscriptions","organizations_url":"https://api.github.com/users/mmojzis/orgs","repos_url":"https://api.github.com/users/mmojzis/repos","events_url":"https://api.github.com/users/mmojzis/events{/privacy}","received_events_url":"https://api.github.com/users/mmojzis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mmojzis/wrapanapi","description":"A base system for provider management","fork":true,"url":"https://api.github.com/repos/mmojzis/wrapanapi","forks_url":"https://api.github.com/repos/mmojzis/wrapanapi/forks","keys_url":"https://api.github.com/repos/mmojzis/wrapanapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mmojzis/wrapanapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mmojzis/wrapanapi/teams","hooks_url":"https://api.github.com/repos/mmojzis/wrapanapi/hooks","issue_events_url":"https://api.github.com/repos/mmojzis/wrapanapi/issues/events{/number}","events_url":"https://api.github.com/repos/mmojzis/wrapanapi/events","assignees_url":"https://api.github.com/repos/mmojzis/wrapanapi/assignees{/user}","branches_url":"https://api.github.com/repos/mmojzis/wrapanapi/branches{/branch}","tags_url":"https://api.github.com/repos/mmojzis/wrapanapi/tags","blobs_url":"https://api.github.com/repos/mmojzis/wrapanapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mmojzis/wrapanapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mmojzis/wrapanapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/mmojzis/wrapanapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mmojzis/wrapanapi/statuses/{sha}","languages_url":"https://api.github.com/repos/mmojzis/wrapanapi/languages","stargazers_url":"https://api.github.com/repos/mmojzis/wrapanapi/stargazers","contributors_url":"https://api.github.com/repos/mmojzis/wrapanapi/contributors","subscribers_url":"https://api.github.com/repos/mmojzis/wrapanapi/subscribers","subscription_url":"https://api.github.com/repos/mmojzis/wrapanapi/subscription","commits_url":"https://api.github.com/repos/mmojzis/wrapanapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/mmojzis/wrapanapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/mmojzis/wrapanapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/mmojzis/wrapanapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/mmojzis/wrapanapi/contents/{+path}","compare_url":"https://api.github.com/repos/mmojzis/wrapanapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mmojzis/wrapanapi/merges","archive_url":"https://api.github.com/repos/mmojzis/wrapanapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mmojzis/wrapanapi/downloads","issues_url":"https://api.github.com/repos/mmojzis/wrapanapi/issues{/number}","pulls_url":"https://api.github.com/repos/mmojzis/wrapanapi/pulls{/number}","milestones_url":"https://api.github.com/repos/mmojzis/wrapanapi/milestones{/number}","notifications_url":"https://api.github.com/repos/mmojzis/wrapanapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mmojzis/wrapanapi/labels{/name}","releases_url":"https://api.github.com/repos/mmojzis/wrapanapi/releases{/id}","deployments_url":"https://api.github.com/repos/mmojzis/wrapanapi/deployments","created_at":"2016-10-13T13:49:10Z","updated_at":"2016-10-13T13:49:11Z","pushed_at":"2017-06-22T12:25:36Z","git_url":"git://github.com/mmojzis/wrapanapi.git","ssh_url":"git@github.com:mmojzis/wrapanapi.git","clone_url":"https://github.com/mmojzis/wrapanapi.git","svn_url":"https://github.com/mmojzis/wrapanapi","homepage":"","size":507,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"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":"ManageIQ:master","ref":"master","sha":"d8f46d635ed7507c737f3a1c12792175197f224e","user":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars3.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"repo":{"id":41742770,"name":"wrapanapi","full_name":"ManageIQ/wrapanapi","owner":{"login":"ManageIQ","id":1125575,"avatar_url":"https://avatars3.githubusercontent.com/u/1125575?v=3","gravatar_id":"","url":"https://api.github.com/users/ManageIQ","html_url":"https://github.com/ManageIQ","followers_url":"https://api.github.com/users/ManageIQ/followers","following_url":"https://api.github.com/users/ManageIQ/following{/other_user}","gists_url":"https://api.github.com/users/ManageIQ/gists{/gist_id}","starred_url":"https://api.github.com/users/ManageIQ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManageIQ/subscriptions","organizations_url":"https://api.github.com/users/ManageIQ/orgs","repos_url":"https://api.github.com/users/ManageIQ/repos","events_url":"https://api.github.com/users/ManageIQ/events{/privacy}","received_events_url":"https://api.github.com/users/ManageIQ/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ManageIQ/wrapanapi","description":"A base system for provider management","fork":false,"url":"https://api.github.com/repos/ManageIQ/wrapanapi","forks_url":"https://api.github.com/repos/ManageIQ/wrapanapi/forks","keys_url":"https://api.github.com/repos/ManageIQ/wrapanapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ManageIQ/wrapanapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ManageIQ/wrapanapi/teams","hooks_url":"https://api.github.com/repos/ManageIQ/wrapanapi/hooks","issue_events_url":"https://api.github.com/repos/ManageIQ/wrapanapi/issues/events{/number}","events_url":"https://api.github.com/repos/ManageIQ/wrapanapi/events","assignees_url":"https://api.github.com/repos/ManageIQ/wrapanapi/assignees{/user}","branches_url":"https://api.github.com/repos/ManageIQ/wrapanapi/branches{/branch}","tags_url":"https://api.github.com/repos/ManageIQ/wrapanapi/tags","blobs_url":"https://api.github.com/repos/ManageIQ/wrapanapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ManageIQ/wrapanapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ManageIQ/wrapanapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/ManageIQ/wrapanapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ManageIQ/wrapanapi/statuses/{sha}","languages_url":"https://api.github.com/repos/ManageIQ/wrapanapi/languages","stargazers_url":"https://api.github.com/repos/ManageIQ/wrapanapi/stargazers","contributors_url":"https://api.github.com/repos/ManageIQ/wrapanapi/contributors","subscribers_url":"https://api.github.com/repos/ManageIQ/wrapanapi/subscribers","subscription_url":"https://api.github.com/repos/ManageIQ/wrapanapi/subscription","commits_url":"https://api.github.com/repos/ManageIQ/wrapanapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/ManageIQ/wrapanapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/ManageIQ/wrapanapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/ManageIQ/wrapanapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/ManageIQ/wrapanapi/contents/{+path}","compare_url":"https://api.github.com/repos/ManageIQ/wrapanapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ManageIQ/wrapanapi/merges","archive_url":"https://api.github.com/repos/ManageIQ/wrapanapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ManageIQ/wrapanapi/downloads","issues_url":"https://api.github.com/repos/ManageIQ/wrapanapi/issues{/number}","pulls_url":"https://api.github.com/repos/ManageIQ/wrapanapi/pulls{/number}","milestones_url":"https://api.github.com/repos/ManageIQ/wrapanapi/milestones{/number}","notifications_url":"https://api.github.com/repos/ManageIQ/wrapanapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ManageIQ/wrapanapi/labels{/name}","releases_url":"https://api.github.com/repos/ManageIQ/wrapanapi/releases{/id}","deployments_url":"https://api.github.com/repos/ManageIQ/wrapanapi/deployments","created_at":"2015-09-01T14:16:00Z","updated_at":"2017-05-23T14:02:18Z","pushed_at":"2017-06-22T12:25:37Z","git_url":"git://github.com/ManageIQ/wrapanapi.git","ssh_url":"git@github.com:ManageIQ/wrapanapi.git","clone_url":"https://github.com/ManageIQ/wrapanapi.git","svn_url":"https://github.com/ManageIQ/wrapanapi","homepage":"","size":466,"stargazers_count":8,"watchers_count":8,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":30,"mirror_url":null,"open_issues_count":3,"forks":30,"open_issues":3,"watchers":8,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ManageIQ/wrapanapi/pulls/139"},"html":{"href":"https://github.com/ManageIQ/wrapanapi/pull/139"},"issue":{"href":"https://api.github.com/repos/ManageIQ/wrapanapi/issues/139"},"comments":{"href":"https://api.github.com/repos/ManageIQ/wrapanapi/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/ManageIQ/wrapanapi/pulls/139/comments"},"review_comment":{"href":"https://api.github.com/repos/ManageIQ/wrapanapi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ManageIQ/wrapanapi/pulls/139/commits"},"statuses":{"href":"https://api.github.com/repos/ManageIQ/wrapanapi/statuses/1a39c89e55d5f9a17eb5289220a883aa1416b539"}}}}
{"actor":{"display_login":"mmojzis"}}