|
56 | 56 |
|
57 | 57 | # get nodes that are 'clean' from health check results |
58 | 58 | $nodes_to_patch = ($health_checks.filter_set |$item| { $item.value['state'] == 'clean' }).map |$n| { $n.target } |
59 | | - $health_check_failed = ($health_checks.filter_set |$item| { $item.status == 'failure' }).map |$n| { $n.target } |
| 59 | + $health_check_failed = ($health_checks.filter_set |$item| { $item.status == 'failure' }).map |$n| { $n.name }.sort |
60 | 60 |
|
61 | 61 | if $debug { |
62 | 62 | out::message('patch_batch.pp: Nodes to patch after health check:') |
|
87 | 87 |
|
88 | 88 | $no_patches = $patching_result.ok_set.filter |$item| { |
89 | 89 | $item.value['packages_updated'].empty |
90 | | - }.map |$n| { $n.target } |
| 90 | + }.map |$n| { $n.name }.sort |
91 | 91 |
|
92 | 92 | $with_patches = $patching_result.ok_set.filter |$item| { |
93 | 93 | ! $item.value['packages_updated'].empty |
94 | | - }.map |$n| { $n.target } |
| 94 | + }.map |$n| { $n.name }.sort |
95 | 95 |
|
96 | 96 | $reboot_required = $patching_result.ok_set.filter |$item| { |
97 | 97 | $item.value['reboot_required'] == true |
98 | | - }.map |$n| { $n.target } |
| 98 | + }.map |$n| { $n.name }.sort |
99 | 99 |
|
100 | 100 | $targets = get_targets($batch).map |$t| { $t.name }.sort |
101 | 101 |
|
102 | 102 | $output = { |
103 | | - failed => $patching_result.error_set.names, |
| 103 | + failed => $patching_result.error_set.map |$n| { $n.name }.sort, |
104 | 104 | health_check => $run_health_check, |
105 | 105 | health_check_failed => $health_check_failed, |
106 | 106 | no_patches => $no_patches, |
|
0 commit comments