{"action":"created","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1202","labels_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1202/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1202/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1202/events","html_url":"https://github.com/ansible/ansible-modules-core/pull/1202","id":70831532,"number":1202,"title":"Added choice validation for EC2 state arg","user":{"login":"nitzmahone","id":6775756,"avatar_url":"https://avatars.githubusercontent.com/u/6775756?v=3","gravatar_id":"","url":"https://api.github.com/users/nitzmahone","html_url":"https://github.com/nitzmahone","followers_url":"https://api.github.com/users/nitzmahone/followers","following_url":"https://api.github.com/users/nitzmahone/following{/other_user}","gists_url":"https://api.github.com/users/nitzmahone/gists{/gist_id}","starred_url":"https://api.github.com/users/nitzmahone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitzmahone/subscriptions","organizations_url":"https://api.github.com/users/nitzmahone/orgs","repos_url":"https://api.github.com/users/nitzmahone/repos","events_url":"https://api.github.com/users/nitzmahone/events{/privacy}","received_events_url":"https://api.github.com/users/nitzmahone/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/bugfix_pull_request","name":"bugfix_pull_request","color":"ded270"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/cloud","name":"cloud","color":"c7def8"},{"url":"https://api.github.com/repos/ansible/ansible-modules-core/labels/P3","name":"P3","color":"fef2c0"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-25T00:39:30Z","updated_at":"2015-06-16T20:51:07Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/pulls/1202","html_url":"https://github.com/ansible/ansible-modules-core/pull/1202","diff_url":"https://github.com/ansible/ansible-modules-core/pull/1202.diff","patch_url":"https://github.com/ansible/ansible-modules-core/pull/1202.patch"},"body":"Fixes traceback on invalid state arg (conditional falls through to exit_json without changed being set):\r\n\r\nmodule.exit_json(changed=changed, instance_ids=new_instance_ids, instances=instance_dict_array, tagged_instances=tagged_instances) :\r\nUnboundLocalError: local variable 'changed' referenced before assignment)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/comments/112565612","html_url":"https://github.com/ansible/ansible-modules-core/pull/1202#issuecomment-112565612","issue_url":"https://api.github.com/repos/ansible/ansible-modules-core/issues/1202","id":112565612,"user":{"login":"nitzmahone","id":6775756,"avatar_url":"https://avatars.githubusercontent.com/u/6775756?v=3","gravatar_id":"","url":"https://api.github.com/users/nitzmahone","html_url":"https://github.com/nitzmahone","followers_url":"https://api.github.com/users/nitzmahone/followers","following_url":"https://api.github.com/users/nitzmahone/following{/other_user}","gists_url":"https://api.github.com/users/nitzmahone/gists{/gist_id}","starred_url":"https://api.github.com/users/nitzmahone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nitzmahone/subscriptions","organizations_url":"https://api.github.com/users/nitzmahone/orgs","repos_url":"https://api.github.com/users/nitzmahone/repos","events_url":"https://api.github.com/users/nitzmahone/events{/privacy}","received_events_url":"https://api.github.com/users/nitzmahone/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T20:51:07Z","updated_at":"2015-06-16T20:51:07Z","body":"PS- @bennojoy, this is mdavis"}}