{"action":"created","issue":{"url":"https://api.github.com/repos/Netflix/security_monkey/issues/848","repository_url":"https://api.github.com/repos/Netflix/security_monkey","labels_url":"https://api.github.com/repos/Netflix/security_monkey/issues/848/labels{/name}","comments_url":"https://api.github.com/repos/Netflix/security_monkey/issues/848/comments","events_url":"https://api.github.com/repos/Netflix/security_monkey/issues/848/events","html_url":"https://github.com/Netflix/security_monkey/issues/848","id":267842035,"number":848,"title":"TypeError enumerating ElasticSearch domains when region has none","user":{"login":"mark-ignacio","id":4490736,"avatar_url":"https://avatars0.githubusercontent.com/u/4490736?v=4","gravatar_id":"","url":"https://api.github.com/users/mark-ignacio","html_url":"https://github.com/mark-ignacio","followers_url":"https://api.github.com/users/mark-ignacio/followers","following_url":"https://api.github.com/users/mark-ignacio/following{/other_user}","gists_url":"https://api.github.com/users/mark-ignacio/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-ignacio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-ignacio/subscriptions","organizations_url":"https://api.github.com/users/mark-ignacio/orgs","repos_url":"https://api.github.com/users/mark-ignacio/repos","events_url":"https://api.github.com/users/mark-ignacio/events{/privacy}","received_events_url":"https://api.github.com/users/mark-ignacio/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-23T22:50:12Z","updated_at":"2017-10-23T23:15:43Z","closed_at":null,"author_association":"NONE","body":"I got the following exception on the develop branch when kicking off a scan thing:\r\n\r\n```\r\n$ monkey find_changes -a specialsnowflake\r\n[...]\r\nINFO:botocore.vendored.requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): es.ap-northeast-1.amazonaws.com\r\nTraceback (most recent call last):\r\n  File \"/usr/local/src/security_monkey/venv/bin/monkey\", line 11, in <module>\r\n    load_entry_point('security-monkey', 'console_scripts', 'monkey')()\r\n  File \"/usr/local/src/security_monkey/security_monkey/manage.py\", line 695, in main\r\n    manager.run()\r\n  File \"/usr/local/src/security_monkey/venv/lib/python2.7/site-packages/Flask_Script-0.6.3-py2.7.egg/flask_script/__init__.py\", line 397, in run\r\n    result = self.handle(sys.argv[0], sys.argv[1:])\r\n  File \"/usr/local/src/security_monkey/venv/lib/python2.7/site-packages/Flask_Script-0.6.3-py2.7.egg/flask_script/__init__.py\", line 376, in handle\r\n    return handle(app, *positional_args, **kwargs)\r\n  File \"/usr/local/src/security_monkey/venv/lib/python2.7/site-packages/Flask_Script-0.6.3-py2.7.egg/flask_script/commands.py\", line 145, in handle\r\n    return self.run(*args, **kwargs)\r\n  File \"/usr/local/src/security_monkey/security_monkey/manage.py\", line 80, in find_changes\r\n    sm_find_changes(account_names, monitor_names)\r\n  File \"/usr/local/src/security_monkey/security_monkey/scheduler.py\", line 52, in find_changes\r\n    (items, exception_map) = cw.slurp()\r\n  File \"/usr/local/src/security_monkey/security_monkey/watchers/elasticsearch_service.py\", line 72, in slurp\r\n    return slurp_items()\r\n  File \"/usr/local/src/security_monkey/security_monkey/decorators.py\", line 153, in decorated_function\r\n    itm, exc = f(*args, **kwargs)\r\n  File \"/usr/local/src/security_monkey/security_monkey/watchers/elasticsearch_service.py\", line 58, in slurp_items\r\n    (client, domains) = self.get_all_es_domains_in_region(**kwargs)\r\nTypeError: 'NoneType' object is not iterable\r\nINFO:root:Shutting down thread pool\r\n```\r\n\r\nStack trace suggests that it's trying to get changes to an empty region."},"comment":{"url":"https://api.github.com/repos/Netflix/security_monkey/issues/comments/338823710","html_url":"https://github.com/Netflix/security_monkey/issues/848#issuecomment-338823710","issue_url":"https://api.github.com/repos/Netflix/security_monkey/issues/848","id":338823710,"user":{"login":"mark-ignacio","id":4490736,"avatar_url":"https://avatars0.githubusercontent.com/u/4490736?v=4","gravatar_id":"","url":"https://api.github.com/users/mark-ignacio","html_url":"https://github.com/mark-ignacio","followers_url":"https://api.github.com/users/mark-ignacio/followers","following_url":"https://api.github.com/users/mark-ignacio/following{/other_user}","gists_url":"https://api.github.com/users/mark-ignacio/gists{/gist_id}","starred_url":"https://api.github.com/users/mark-ignacio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mark-ignacio/subscriptions","organizations_url":"https://api.github.com/users/mark-ignacio/orgs","repos_url":"https://api.github.com/users/mark-ignacio/repos","events_url":"https://api.github.com/users/mark-ignacio/events{/privacy}","received_events_url":"https://api.github.com/users/mark-ignacio/received_events","type":"User","site_admin":false},"created_at":"2017-10-23T23:15:43Z","updated_at":"2017-10-23T23:15:43Z","author_association":"NONE","body":"PR to maybe fix this is #849."}}
{"actor":{"display_login":"mark-ignacio"}}