{"action":"created","comment":{"url":"https://api.github.com/repos/StackStorm/st2contrib/pulls/comments/51044110","id":51044110,"diff_hunk":"@@ -32,9 +34,17 @@ def __init__(self, sensor_service, config=None, poll_interval=5):\n                                            poll_interval=poll_interval)\n \n     def setup(self):\n-        self.input_queue = self._get_config_entry(key='keys ', prefix='sqs_sensor')\n+        queues = self._get_config_entry(key='input_queues', prefix='sqs_sensor')\n+\n+        # XXX: This is a hack as from datastore we can only receive a string while\n+        # from config.yaml we can receive a list\n+        if type(queues) is str:\n+            self.input_queues = queues.split(', ')","path":"packs/aws/sensors/sqs_sensor.py","position":30,"original_position":30,"commit_id":"ff8044f353edf51ba47dc777bc444727e7a12e45","original_commit_id":"ff8044f353edf51ba47dc777bc444727e7a12e45","user":{"login":"m4dcoder","id":2767408,"avatar_url":"https://avatars.githubusercontent.com/u/2767408?v=3","gravatar_id":"","url":"https://api.github.com/users/m4dcoder","html_url":"https://github.com/m4dcoder","followers_url":"https://api.github.com/users/m4dcoder/followers","following_url":"https://api.github.com/users/m4dcoder/following{/other_user}","gists_url":"https://api.github.com/users/m4dcoder/gists{/gist_id}","starred_url":"https://api.github.com/users/m4dcoder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m4dcoder/subscriptions","organizations_url":"https://api.github.com/users/m4dcoder/orgs","repos_url":"https://api.github.com/users/m4dcoder/repos","events_url":"https://api.github.com/users/m4dcoder/events{/privacy}","received_events_url":"https://api.github.com/users/m4dcoder/received_events","type":"User","site_admin":false},"body":"I recommend covering cases where there are no whitespace or multiple whitespaces before/after the comma.","created_at":"2016-01-27T20:23:01Z","updated_at":"2016-01-27T20:23:01Z","html_url":"https://github.com/StackStorm/st2contrib/pull/371#discussion_r51044110","pull_request_url":"https://api.github.com/repos/StackStorm/st2contrib/pulls/371","_links":{"self":{"href":"https://api.github.com/repos/StackStorm/st2contrib/pulls/comments/51044110"},"html":{"href":"https://github.com/StackStorm/st2contrib/pull/371#discussion_r51044110"},"pull_request":{"href":"https://api.github.com/repos/StackStorm/st2contrib/pulls/371"}}},"pull_request":{"url":"https://api.github.com/repos/StackStorm/st2contrib/pulls/371","id":57414829,"html_url":"https://github.com/StackStorm/st2contrib/pull/371","diff_url":"https://github.com/StackStorm/st2contrib/pull/371.diff","patch_url":"https://github.com/StackStorm/st2contrib/pull/371.patch","issue_url":"https://api.github.com/repos/StackStorm/st2contrib/issues/371","number":371,"state":"open","locked":false,"title":"Add multiple queues support to AWS sqs sensor","user":{"login":"haad","id":67790,"avatar_url":"https://avatars.githubusercontent.com/u/67790?v=3","gravatar_id":"","url":"https://api.github.com/users/haad","html_url":"https://github.com/haad","followers_url":"https://api.github.com/users/haad/followers","following_url":"https://api.github.com/users/haad/following{/other_user}","gists_url":"https://api.github.com/users/haad/gists{/gist_id}","starred_url":"https://api.github.com/users/haad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haad/subscriptions","organizations_url":"https://api.github.com/users/haad/orgs","repos_url":"https://api.github.com/users/haad/repos","events_url":"https://api.github.com/users/haad/events{/privacy}","received_events_url":"https://api.github.com/users/haad/received_events","type":"User","site_admin":false},"body":"Add support for multiple queues into sqs sensor to make sure we can work with multiple rules. Raise an error if we don't get any configuration from ds nor config.yaml","created_at":"2016-01-27T20:07:08Z","updated_at":"2016-01-27T20:23:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bd586caf26f1447473591c3633a1fd954bf83e2e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/StackStorm/st2contrib/pulls/371/commits","review_comments_url":"https://api.github.com/repos/StackStorm/st2contrib/pulls/371/comments","review_comment_url":"https://api.github.com/repos/StackStorm/st2contrib/pulls/comments{/number}","comments_url":"https://api.github.com/repos/StackStorm/st2contrib/issues/371/comments","statuses_url":"https://api.github.com/repos/StackStorm/st2contrib/statuses/ff8044f353edf51ba47dc777bc444727e7a12e45","head":{"label":"haad:aws_sqs_sensor","ref":"aws_sqs_sensor","sha":"ff8044f353edf51ba47dc777bc444727e7a12e45","user":{"login":"haad","id":67790,"avatar_url":"https://avatars.githubusercontent.com/u/67790?v=3","gravatar_id":"","url":"https://api.github.com/users/haad","html_url":"https://github.com/haad","followers_url":"https://api.github.com/users/haad/followers","following_url":"https://api.github.com/users/haad/following{/other_user}","gists_url":"https://api.github.com/users/haad/gists{/gist_id}","starred_url":"https://api.github.com/users/haad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haad/subscriptions","organizations_url":"https://api.github.com/users/haad/orgs","repos_url":"https://api.github.com/users/haad/repos","events_url":"https://api.github.com/users/haad/events{/privacy}","received_events_url":"https://api.github.com/users/haad/received_events","type":"User","site_admin":false},"repo":{"id":49057474,"name":"st2contrib","full_name":"haad/st2contrib","owner":{"login":"haad","id":67790,"avatar_url":"https://avatars.githubusercontent.com/u/67790?v=3","gravatar_id":"","url":"https://api.github.com/users/haad","html_url":"https://github.com/haad","followers_url":"https://api.github.com/users/haad/followers","following_url":"https://api.github.com/users/haad/following{/other_user}","gists_url":"https://api.github.com/users/haad/gists{/gist_id}","starred_url":"https://api.github.com/users/haad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haad/subscriptions","organizations_url":"https://api.github.com/users/haad/orgs","repos_url":"https://api.github.com/users/haad/repos","events_url":"https://api.github.com/users/haad/events{/privacy}","received_events_url":"https://api.github.com/users/haad/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/haad/st2contrib","description":"StackStorm integration packs for many common tools and also helpful tools to build integrations and automations with StackStorm.","fork":true,"url":"https://api.github.com/repos/haad/st2contrib","forks_url":"https://api.github.com/repos/haad/st2contrib/forks","keys_url":"https://api.github.com/repos/haad/st2contrib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/haad/st2contrib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/haad/st2contrib/teams","hooks_url":"https://api.github.com/repos/haad/st2contrib/hooks","issue_events_url":"https://api.github.com/repos/haad/st2contrib/issues/events{/number}","events_url":"https://api.github.com/repos/haad/st2contrib/events","assignees_url":"https://api.github.com/repos/haad/st2contrib/assignees{/user}","branches_url":"https://api.github.com/repos/haad/st2contrib/branches{/branch}","tags_url":"https://api.github.com/repos/haad/st2contrib/tags","blobs_url":"https://api.github.com/repos/haad/st2contrib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/haad/st2contrib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/haad/st2contrib/git/refs{/sha}","trees_url":"https://api.github.com/repos/haad/st2contrib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/haad/st2contrib/statuses/{sha}","languages_url":"https://api.github.com/repos/haad/st2contrib/languages","stargazers_url":"https://api.github.com/repos/haad/st2contrib/stargazers","contributors_url":"https://api.github.com/repos/haad/st2contrib/contributors","subscribers_url":"https://api.github.com/repos/haad/st2contrib/subscribers","subscription_url":"https://api.github.com/repos/haad/st2contrib/subscription","commits_url":"https://api.github.com/repos/haad/st2contrib/commits{/sha}","git_commits_url":"https://api.github.com/repos/haad/st2contrib/git/commits{/sha}","comments_url":"https://api.github.com/repos/haad/st2contrib/comments{/number}","issue_comment_url":"https://api.github.com/repos/haad/st2contrib/issues/comments{/number}","contents_url":"https://api.github.com/repos/haad/st2contrib/contents/{+path}","compare_url":"https://api.github.com/repos/haad/st2contrib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/haad/st2contrib/merges","archive_url":"https://api.github.com/repos/haad/st2contrib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/haad/st2contrib/downloads","issues_url":"https://api.github.com/repos/haad/st2contrib/issues{/number}","pulls_url":"https://api.github.com/repos/haad/st2contrib/pulls{/number}","milestones_url":"https://api.github.com/repos/haad/st2contrib/milestones{/number}","notifications_url":"https://api.github.com/repos/haad/st2contrib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/haad/st2contrib/labels{/name}","releases_url":"https://api.github.com/repos/haad/st2contrib/releases{/id}","deployments_url":"https://api.github.com/repos/haad/st2contrib/deployments","created_at":"2016-01-05T09:56:59Z","updated_at":"2016-01-27T10:17:37Z","pushed_at":"2016-01-27T20:04:49Z","git_url":"git://github.com/haad/st2contrib.git","ssh_url":"git@github.com:haad/st2contrib.git","clone_url":"https://github.com/haad/st2contrib.git","svn_url":"https://github.com/haad/st2contrib","homepage":"http://www.stackstorm.com/community","size":4200,"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":"master"}},"base":{"label":"StackStorm:master","ref":"master","sha":"3e23937fca2f2a6605073cd69ba4891faf76b406","user":{"login":"StackStorm","id":4969009,"avatar_url":"https://avatars.githubusercontent.com/u/4969009?v=3","gravatar_id":"","url":"https://api.github.com/users/StackStorm","html_url":"https://github.com/StackStorm","followers_url":"https://api.github.com/users/StackStorm/followers","following_url":"https://api.github.com/users/StackStorm/following{/other_user}","gists_url":"https://api.github.com/users/StackStorm/gists{/gist_id}","starred_url":"https://api.github.com/users/StackStorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackStorm/subscriptions","organizations_url":"https://api.github.com/users/StackStorm/orgs","repos_url":"https://api.github.com/users/StackStorm/repos","events_url":"https://api.github.com/users/StackStorm/events{/privacy}","received_events_url":"https://api.github.com/users/StackStorm/received_events","type":"Organization","site_admin":false},"repo":{"id":24968227,"name":"st2contrib","full_name":"StackStorm/st2contrib","owner":{"login":"StackStorm","id":4969009,"avatar_url":"https://avatars.githubusercontent.com/u/4969009?v=3","gravatar_id":"","url":"https://api.github.com/users/StackStorm","html_url":"https://github.com/StackStorm","followers_url":"https://api.github.com/users/StackStorm/followers","following_url":"https://api.github.com/users/StackStorm/following{/other_user}","gists_url":"https://api.github.com/users/StackStorm/gists{/gist_id}","starred_url":"https://api.github.com/users/StackStorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackStorm/subscriptions","organizations_url":"https://api.github.com/users/StackStorm/orgs","repos_url":"https://api.github.com/users/StackStorm/repos","events_url":"https://api.github.com/users/StackStorm/events{/privacy}","received_events_url":"https://api.github.com/users/StackStorm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StackStorm/st2contrib","description":"StackStorm integration packs for many common tools and also helpful tools to build integrations and automations with StackStorm.","fork":false,"url":"https://api.github.com/repos/StackStorm/st2contrib","forks_url":"https://api.github.com/repos/StackStorm/st2contrib/forks","keys_url":"https://api.github.com/repos/StackStorm/st2contrib/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StackStorm/st2contrib/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StackStorm/st2contrib/teams","hooks_url":"https://api.github.com/repos/StackStorm/st2contrib/hooks","issue_events_url":"https://api.github.com/repos/StackStorm/st2contrib/issues/events{/number}","events_url":"https://api.github.com/repos/StackStorm/st2contrib/events","assignees_url":"https://api.github.com/repos/StackStorm/st2contrib/assignees{/user}","branches_url":"https://api.github.com/repos/StackStorm/st2contrib/branches{/branch}","tags_url":"https://api.github.com/repos/StackStorm/st2contrib/tags","blobs_url":"https://api.github.com/repos/StackStorm/st2contrib/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StackStorm/st2contrib/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StackStorm/st2contrib/git/refs{/sha}","trees_url":"https://api.github.com/repos/StackStorm/st2contrib/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StackStorm/st2contrib/statuses/{sha}","languages_url":"https://api.github.com/repos/StackStorm/st2contrib/languages","stargazers_url":"https://api.github.com/repos/StackStorm/st2contrib/stargazers","contributors_url":"https://api.github.com/repos/StackStorm/st2contrib/contributors","subscribers_url":"https://api.github.com/repos/StackStorm/st2contrib/subscribers","subscription_url":"https://api.github.com/repos/StackStorm/st2contrib/subscription","commits_url":"https://api.github.com/repos/StackStorm/st2contrib/commits{/sha}","git_commits_url":"https://api.github.com/repos/StackStorm/st2contrib/git/commits{/sha}","comments_url":"https://api.github.com/repos/StackStorm/st2contrib/comments{/number}","issue_comment_url":"https://api.github.com/repos/StackStorm/st2contrib/issues/comments{/number}","contents_url":"https://api.github.com/repos/StackStorm/st2contrib/contents/{+path}","compare_url":"https://api.github.com/repos/StackStorm/st2contrib/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StackStorm/st2contrib/merges","archive_url":"https://api.github.com/repos/StackStorm/st2contrib/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StackStorm/st2contrib/downloads","issues_url":"https://api.github.com/repos/StackStorm/st2contrib/issues{/number}","pulls_url":"https://api.github.com/repos/StackStorm/st2contrib/pulls{/number}","milestones_url":"https://api.github.com/repos/StackStorm/st2contrib/milestones{/number}","notifications_url":"https://api.github.com/repos/StackStorm/st2contrib/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StackStorm/st2contrib/labels{/name}","releases_url":"https://api.github.com/repos/StackStorm/st2contrib/releases{/id}","deployments_url":"https://api.github.com/repos/StackStorm/st2contrib/deployments","created_at":"2014-10-09T01:19:56Z","updated_at":"2016-01-26T16:51:20Z","pushed_at":"2016-01-27T20:07:08Z","git_url":"git://github.com/StackStorm/st2contrib.git","ssh_url":"git@github.com:StackStorm/st2contrib.git","clone_url":"https://github.com/StackStorm/st2contrib.git","svn_url":"https://github.com/StackStorm/st2contrib","homepage":"http://www.stackstorm.com/community","size":4285,"stargazers_count":63,"watchers_count":63,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":59,"mirror_url":null,"open_issues_count":26,"forks":59,"open_issues":26,"watchers":63,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StackStorm/st2contrib/pulls/371"},"html":{"href":"https://github.com/StackStorm/st2contrib/pull/371"},"issue":{"href":"https://api.github.com/repos/StackStorm/st2contrib/issues/371"},"comments":{"href":"https://api.github.com/repos/StackStorm/st2contrib/issues/371/comments"},"review_comments":{"href":"https://api.github.com/repos/StackStorm/st2contrib/pulls/371/comments"},"review_comment":{"href":"https://api.github.com/repos/StackStorm/st2contrib/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/StackStorm/st2contrib/pulls/371/commits"},"statuses":{"href":"https://api.github.com/repos/StackStorm/st2contrib/statuses/ff8044f353edf51ba47dc777bc444727e7a12e45"}}}}