{"action":"created","comment":{"url":"https://api.github.com/repos/saltstack/salt/pulls/comments/23066033","id":23066033,"diff_hunk":"@@ -0,0 +1,126 @@\n+# -*- coding: utf-8 -*-\n+\n+import logging\n+\n+log = logging.getLogger(__name__)\n+\n+# Import third party libs\n+try:\n+    import boto\n+    import boto.sns\n+    logging.getLogger('boto').setLevel(logging.CRITICAL)\n+    HAS_BOTO = True\n+except ImportError:\n+    HAS_BOTO = False\n+\n+from salt.ext.six import string_types\n+\n+\n+def __virtual__():\n+    '''\n+    Only load if boto libraries exist.\n+    '''\n+    if not HAS_BOTO:\n+        return False\n+    return True\n+\n+\n+def get_all_topics(region=None, key=None, keyid=None, profile=None):","path":"salt/modules/boto_sns.py","position":28,"original_position":28,"commit_id":"64cf74ebaa1f1a6b40c1131a9d924838ebf106b4","original_commit_id":"64cf74ebaa1f1a6b40c1131a9d924838ebf106b4","user":{"login":"rallytime","id":6547906,"avatar_url":"https://avatars.githubusercontent.com/u/6547906?v=3","gravatar_id":"","url":"https://api.github.com/users/rallytime","html_url":"https://github.com/rallytime","followers_url":"https://api.github.com/users/rallytime/followers","following_url":"https://api.github.com/users/rallytime/following{/other_user}","gists_url":"https://api.github.com/users/rallytime/gists{/gist_id}","starred_url":"https://api.github.com/users/rallytime/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rallytime/subscriptions","organizations_url":"https://api.github.com/users/rallytime/orgs","repos_url":"https://api.github.com/users/rallytime/repos","events_url":"https://api.github.com/users/rallytime/events{/privacy}","received_events_url":"https://api.github.com/users/rallytime/received_events","type":"User","site_admin":false},"body":"Oh! And a CLI example, too. :)","created_at":"2015-01-16T07:19:08Z","updated_at":"2015-01-16T07:19:08Z","html_url":"https://github.com/saltstack/salt/pull/19746#discussion_r23066033","pull_request_url":"https://api.github.com/repos/saltstack/salt/pulls/19746","_links":{"self":{"href":"https://api.github.com/repos/saltstack/salt/pulls/comments/23066033"},"html":{"href":"https://github.com/saltstack/salt/pull/19746#discussion_r23066033"},"pull_request":{"href":"https://api.github.com/repos/saltstack/salt/pulls/19746"}}},"pull_request":{"url":"https://api.github.com/repos/saltstack/salt/pulls/19746","id":27394376,"html_url":"https://github.com/saltstack/salt/pull/19746","diff_url":"https://github.com/saltstack/salt/pull/19746.diff","patch_url":"https://github.com/saltstack/salt/pull/19746.patch","issue_url":"https://api.github.com/repos/saltstack/salt/issues/19746","number":19746,"state":"open","locked":false,"title":"Add boto_sns module and state.","user":{"login":"zimathias","id":609575,"avatar_url":"https://avatars.githubusercontent.com/u/609575?v=3","gravatar_id":"","url":"https://api.github.com/users/zimathias","html_url":"https://github.com/zimathias","followers_url":"https://api.github.com/users/zimathias/followers","following_url":"https://api.github.com/users/zimathias/following{/other_user}","gists_url":"https://api.github.com/users/zimathias/gists{/gist_id}","starred_url":"https://api.github.com/users/zimathias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zimathias/subscriptions","organizations_url":"https://api.github.com/users/zimathias/orgs","repos_url":"https://api.github.com/users/zimathias/repos","events_url":"https://api.github.com/users/zimathias/events{/privacy}","received_events_url":"https://api.github.com/users/zimathias/received_events","type":"User","site_admin":false},"body":"Include integration tests.","created_at":"2015-01-14T23:43:34Z","updated_at":"2015-01-16T07:19:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"842cfd5b0d58db167bbfe72c95a80c6a7414389d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/saltstack/salt/pulls/19746/commits","review_comments_url":"https://api.github.com/repos/saltstack/salt/pulls/19746/comments","review_comment_url":"https://api.github.com/repos/saltstack/salt/pulls/comments/{number}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/19746/comments","statuses_url":"https://api.github.com/repos/saltstack/salt/statuses/64cf74ebaa1f1a6b40c1131a9d924838ebf106b4","head":{"label":"lyft:add-boto-sns-module","ref":"add-boto-sns-module","sha":"64cf74ebaa1f1a6b40c1131a9d924838ebf106b4","user":{"login":"lyft","id":4269340,"avatar_url":"https://avatars.githubusercontent.com/u/4269340?v=3","gravatar_id":"","url":"https://api.github.com/users/lyft","html_url":"https://github.com/lyft","followers_url":"https://api.github.com/users/lyft/followers","following_url":"https://api.github.com/users/lyft/following{/other_user}","gists_url":"https://api.github.com/users/lyft/gists{/gist_id}","starred_url":"https://api.github.com/users/lyft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyft/subscriptions","organizations_url":"https://api.github.com/users/lyft/orgs","repos_url":"https://api.github.com/users/lyft/repos","events_url":"https://api.github.com/users/lyft/events{/privacy}","received_events_url":"https://api.github.com/users/lyft/received_events","type":"Organization","site_admin":false},"repo":{"id":18227966,"name":"salt","full_name":"lyft/salt","owner":{"login":"lyft","id":4269340,"avatar_url":"https://avatars.githubusercontent.com/u/4269340?v=3","gravatar_id":"","url":"https://api.github.com/users/lyft","html_url":"https://github.com/lyft","followers_url":"https://api.github.com/users/lyft/followers","following_url":"https://api.github.com/users/lyft/following{/other_user}","gists_url":"https://api.github.com/users/lyft/gists{/gist_id}","starred_url":"https://api.github.com/users/lyft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lyft/subscriptions","organizations_url":"https://api.github.com/users/lyft/orgs","repos_url":"https://api.github.com/users/lyft/repos","events_url":"https://api.github.com/users/lyft/events{/privacy}","received_events_url":"https://api.github.com/users/lyft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/lyft/salt","description":"Central system and configuration manager ","fork":true,"url":"https://api.github.com/repos/lyft/salt","forks_url":"https://api.github.com/repos/lyft/salt/forks","keys_url":"https://api.github.com/repos/lyft/salt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lyft/salt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lyft/salt/teams","hooks_url":"https://api.github.com/repos/lyft/salt/hooks","issue_events_url":"https://api.github.com/repos/lyft/salt/issues/events{/number}","events_url":"https://api.github.com/repos/lyft/salt/events","assignees_url":"https://api.github.com/repos/lyft/salt/assignees{/user}","branches_url":"https://api.github.com/repos/lyft/salt/branches{/branch}","tags_url":"https://api.github.com/repos/lyft/salt/tags","blobs_url":"https://api.github.com/repos/lyft/salt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lyft/salt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lyft/salt/git/refs{/sha}","trees_url":"https://api.github.com/repos/lyft/salt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lyft/salt/statuses/{sha}","languages_url":"https://api.github.com/repos/lyft/salt/languages","stargazers_url":"https://api.github.com/repos/lyft/salt/stargazers","contributors_url":"https://api.github.com/repos/lyft/salt/contributors","subscribers_url":"https://api.github.com/repos/lyft/salt/subscribers","subscription_url":"https://api.github.com/repos/lyft/salt/subscription","commits_url":"https://api.github.com/repos/lyft/salt/commits{/sha}","git_commits_url":"https://api.github.com/repos/lyft/salt/git/commits{/sha}","comments_url":"https://api.github.com/repos/lyft/salt/comments{/number}","issue_comment_url":"https://api.github.com/repos/lyft/salt/issues/comments/{number}","contents_url":"https://api.github.com/repos/lyft/salt/contents/{+path}","compare_url":"https://api.github.com/repos/lyft/salt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lyft/salt/merges","archive_url":"https://api.github.com/repos/lyft/salt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lyft/salt/downloads","issues_url":"https://api.github.com/repos/lyft/salt/issues{/number}","pulls_url":"https://api.github.com/repos/lyft/salt/pulls{/number}","milestones_url":"https://api.github.com/repos/lyft/salt/milestones{/number}","notifications_url":"https://api.github.com/repos/lyft/salt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lyft/salt/labels{/name}","releases_url":"https://api.github.com/repos/lyft/salt/releases{/id}","created_at":"2014-03-28T22:09:30Z","updated_at":"2014-07-17T17:08:30Z","pushed_at":"2015-01-16T00:55:06Z","git_url":"git://github.com/lyft/salt.git","ssh_url":"git@github.com:lyft/salt.git","clone_url":"https://github.com/lyft/salt.git","svn_url":"https://github.com/lyft/salt","homepage":"saltstack.org","size":77645,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"saltstack:develop","ref":"develop","sha":"3a89e6748899a6c389cdc2ba15d8f6cf2a93d696","user":{"login":"saltstack","id":1147473,"avatar_url":"https://avatars.githubusercontent.com/u/1147473?v=3","gravatar_id":"","url":"https://api.github.com/users/saltstack","html_url":"https://github.com/saltstack","followers_url":"https://api.github.com/users/saltstack/followers","following_url":"https://api.github.com/users/saltstack/following{/other_user}","gists_url":"https://api.github.com/users/saltstack/gists{/gist_id}","starred_url":"https://api.github.com/users/saltstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saltstack/subscriptions","organizations_url":"https://api.github.com/users/saltstack/orgs","repos_url":"https://api.github.com/users/saltstack/repos","events_url":"https://api.github.com/users/saltstack/events{/privacy}","received_events_url":"https://api.github.com/users/saltstack/received_events","type":"Organization","site_admin":false},"repo":{"id":1390248,"name":"salt","full_name":"saltstack/salt","owner":{"login":"saltstack","id":1147473,"avatar_url":"https://avatars.githubusercontent.com/u/1147473?v=3","gravatar_id":"","url":"https://api.github.com/users/saltstack","html_url":"https://github.com/saltstack","followers_url":"https://api.github.com/users/saltstack/followers","following_url":"https://api.github.com/users/saltstack/following{/other_user}","gists_url":"https://api.github.com/users/saltstack/gists{/gist_id}","starred_url":"https://api.github.com/users/saltstack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/saltstack/subscriptions","organizations_url":"https://api.github.com/users/saltstack/orgs","repos_url":"https://api.github.com/users/saltstack/repos","events_url":"https://api.github.com/users/saltstack/events{/privacy}","received_events_url":"https://api.github.com/users/saltstack/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/saltstack/salt","description":"Infrastructure automation and management system","fork":false,"url":"https://api.github.com/repos/saltstack/salt","forks_url":"https://api.github.com/repos/saltstack/salt/forks","keys_url":"https://api.github.com/repos/saltstack/salt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/saltstack/salt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/saltstack/salt/teams","hooks_url":"https://api.github.com/repos/saltstack/salt/hooks","issue_events_url":"https://api.github.com/repos/saltstack/salt/issues/events{/number}","events_url":"https://api.github.com/repos/saltstack/salt/events","assignees_url":"https://api.github.com/repos/saltstack/salt/assignees{/user}","branches_url":"https://api.github.com/repos/saltstack/salt/branches{/branch}","tags_url":"https://api.github.com/repos/saltstack/salt/tags","blobs_url":"https://api.github.com/repos/saltstack/salt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/saltstack/salt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/saltstack/salt/git/refs{/sha}","trees_url":"https://api.github.com/repos/saltstack/salt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/saltstack/salt/statuses/{sha}","languages_url":"https://api.github.com/repos/saltstack/salt/languages","stargazers_url":"https://api.github.com/repos/saltstack/salt/stargazers","contributors_url":"https://api.github.com/repos/saltstack/salt/contributors","subscribers_url":"https://api.github.com/repos/saltstack/salt/subscribers","subscription_url":"https://api.github.com/repos/saltstack/salt/subscription","commits_url":"https://api.github.com/repos/saltstack/salt/commits{/sha}","git_commits_url":"https://api.github.com/repos/saltstack/salt/git/commits{/sha}","comments_url":"https://api.github.com/repos/saltstack/salt/comments{/number}","issue_comment_url":"https://api.github.com/repos/saltstack/salt/issues/comments/{number}","contents_url":"https://api.github.com/repos/saltstack/salt/contents/{+path}","compare_url":"https://api.github.com/repos/saltstack/salt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/saltstack/salt/merges","archive_url":"https://api.github.com/repos/saltstack/salt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/saltstack/salt/downloads","issues_url":"https://api.github.com/repos/saltstack/salt/issues{/number}","pulls_url":"https://api.github.com/repos/saltstack/salt/pulls{/number}","milestones_url":"https://api.github.com/repos/saltstack/salt/milestones{/number}","notifications_url":"https://api.github.com/repos/saltstack/salt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/saltstack/salt/labels{/name}","releases_url":"https://api.github.com/repos/saltstack/salt/releases{/id}","created_at":"2011-02-20T20:16:56Z","updated_at":"2015-01-16T07:05:05Z","pushed_at":"2015-01-16T07:10:56Z","git_url":"git://github.com/saltstack/salt.git","ssh_url":"git@github.com:saltstack/salt.git","clone_url":"https://github.com/saltstack/salt.git","svn_url":"https://github.com/saltstack/salt","homepage":"saltstack.com","size":167526,"stargazers_count":4555,"watchers_count":4555,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1879,"mirror_url":null,"open_issues_count":2087,"forks":1879,"open_issues":2087,"watchers":4555,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/saltstack/salt/pulls/19746"},"html":{"href":"https://github.com/saltstack/salt/pull/19746"},"issue":{"href":"https://api.github.com/repos/saltstack/salt/issues/19746"},"comments":{"href":"https://api.github.com/repos/saltstack/salt/issues/19746/comments"},"review_comments":{"href":"https://api.github.com/repos/saltstack/salt/pulls/19746/comments"},"review_comment":{"href":"https://api.github.com/repos/saltstack/salt/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/saltstack/salt/pulls/19746/commits"},"statuses":{"href":"https://api.github.com/repos/saltstack/salt/statuses/64cf74ebaa1f1a6b40c1131a9d924838ebf106b4"}}}}