{"action":"closed","issue":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1326","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1326/labels{/name}","comments_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1326/comments","events_url":"https://api.github.com/repos/ansible/ansible-modules-extras/issues/1326/events","html_url":"https://github.com/ansible/ansible-modules-extras/issues/1326","id":120479240,"number":1326,"title":"Replace outdated idiom choices=BOOLEANS","user":{"login":"abadger","id":209242,"avatar_url":"https://avatars.githubusercontent.com/u/209242?v=3","gravatar_id":"","url":"https://api.github.com/users/abadger","html_url":"https://github.com/abadger","followers_url":"https://api.github.com/users/abadger/followers","following_url":"https://api.github.com/users/abadger/following{/other_user}","gists_url":"https://api.github.com/users/abadger/gists{/gist_id}","starred_url":"https://api.github.com/users/abadger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abadger/subscriptions","organizations_url":"https://api.github.com/users/abadger/orgs","repos_url":"https://api.github.com/users/abadger/repos","events_url":"https://api.github.com/users/abadger/events{/privacy}","received_events_url":"https://api.github.com/users/abadger/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/bug_report","name":"bug_report","color":"fbca04"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/easyfix","name":"easyfix","color":"d4c5f9"},{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/labels/P5","name":"P5","color":"bfdadc"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/ansible/ansible-modules-extras/milestones/2","html_url":"https://github.com/ansible/ansible-modules-extras/milestones/next","labels_url":"https://api.github.com/repos/ansible/ansible-modules-extras/milestones/2/labels","id":996116,"number":2,"title":"next","description":null,"creator":{"login":"bcoca","id":836171,"avatar_url":"https://avatars.githubusercontent.com/u/836171?v=3","gravatar_id":"","url":"https://api.github.com/users/bcoca","html_url":"https://github.com/bcoca","followers_url":"https://api.github.com/users/bcoca/followers","following_url":"https://api.github.com/users/bcoca/following{/other_user}","gists_url":"https://api.github.com/users/bcoca/gists{/gist_id}","starred_url":"https://api.github.com/users/bcoca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcoca/subscriptions","organizations_url":"https://api.github.com/users/bcoca/orgs","repos_url":"https://api.github.com/users/bcoca/repos","events_url":"https://api.github.com/users/bcoca/events{/privacy}","received_events_url":"https://api.github.com/users/bcoca/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":9,"state":"open","created_at":"2015-02-26T01:01:35Z","updated_at":"2015-12-22T02:24:00Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2015-12-04T20:24:25Z","updated_at":"2015-12-22T02:24:00Z","closed_at":"2015-12-22T02:24:00Z","body":"Argument specs used to use ```choices=BOOLEANS``` to specify that an argument should be True or False.  We've since enhanced the argument_spec code so that ```type='bool'``` does the job.  We need to go through the modules and change this over at some point.\r\n\r\nFind modules needing updating this way:\r\n```\r\ngrep BOOLEAN modules/extras -r\r\n```\r\n\r\nChange lines within the module like this:\r\n```\r\n- is_ready = dict(choices=BOOLEANS, default=False),\r\n+ is_ready = dict(type='bool', default=False),\r\n```"}}