win_updates: Correctly report changes on success (#50188)

* win_updates: Correctly report changes on success

* Add changelog fragment
pull/50230/head
Dag Wieers 6 years ago committed by Jordan Borean
parent 774c1a5724
commit 50ed152ab9

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

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

Loading…
Cancel
Save