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:
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