win_chocolatey: always return the rc return value (#41883)

This commit is contained in:
Jordan Borean 2018-06-25 08:23:31 +10:00 committed by GitHub
commit 2e46688bca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 1 deletions

View file

@ -26,6 +26,7 @@
assert:
that:
- 'install.changed == true'
- install.rc == 0
- name: install chocolatey-core.extension again
win_chocolatey:
@ -37,6 +38,7 @@
assert:
that:
- 'install_again.changed == false'
- install.rc == 0
- name: remove chocolatey-core.extension
win_chocolatey:
@ -48,6 +50,7 @@
assert:
that:
- 'remove.changed == true'
- install.rc == 0
- name: remove chocolatey-core.extension again
win_chocolatey:
@ -59,3 +62,4 @@
assert:
that:
- 'remove_again.changed == false'
- install.rc == 0