1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

win_updates: Correctly report changes on success (#50188)

* win_updates: Correctly report changes on success

* Add changelog fragment
This commit is contained in:
Dag Wieers 2018-12-21 02:44:49 +01:00 committed by Jordan Borean
parent 774c1a5724
commit 50ed152ab9
2 changed files with 7 additions and 0 deletions

View file

@ -0,0 +1,3 @@
---
bugfixes:
- win_updates - Correctly report changes on success

View file

@ -350,6 +350,10 @@ $update_script_block = {
$result.installed_update_count = $update_success_count
$result.failed_update_count = $update_fail_count
if ($updates_success_count -gt 0) {
$result.changed = $true
}
if ($update_fail_count -gt 0) {
$result.failed = $true
$result.msg = "Failed to install one or more updates"