win_chocolatey: Clean up parameter handling (#21533)

Changes include:

- Use Get-AnsibleParam with -type/-validateset
- Replace $result PSObject with normal hash
- Deprecate 'upgrade' parameter by using state=latest
This commit is contained in:
Dag Wieers 2017-02-24 11:09:11 +01:00 committed by John R Barker
commit b1f6344ecb
3 changed files with 101 additions and 94 deletions

View file

@ -219,7 +219,6 @@ lib/ansible/modules/web_infrastructure/jira.py
lib/ansible/modules/web_infrastructure/nginx_status_facts.py
lib/ansible/modules/windows/win_acl.py
lib/ansible/modules/windows/win_acl_inheritance.py
lib/ansible/modules/windows/win_chocolatey.py
lib/ansible/modules/windows/win_command.py
lib/ansible/modules/windows/win_feature.py
lib/ansible/modules/windows/win_lineinfile.py