win_updates: Correctly report changes on success (#50188)
* win_updates: Correctly report changes on success * Add changelog fragment
This commit is contained in:
parent
774c1a5724
commit
50ed152ab9
2 changed files with 7 additions and 0 deletions
|
@ -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.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"
|
||||
|
|
Loading…
Reference in a new issue