We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6626b6a commit cdc50deCopy full SHA for cdc50de
ci/tasks/install-windows-updates/run.sh
@@ -81,7 +81,7 @@ while [[ updates_remaining -ne 0 ]]; do
81
# ignore failures here since the vmware tools agent may be down while updates are being applied
82
set +e
83
get_update_count_pid=$(${govc_pwsh_cmd} "${returnWindowsUpdateCount}")
84
- updates_remaining=$(govc guest.ps -vm.ipath="${vm_ipath}" -l="${vm_username}:${vm_password}" -p="${get_update_count_pid}" -X -json | jq '.ProcessInfo[0].ExitCode')
+ updates_remaining=$(govc guest.ps -vm.ipath="${vm_ipath}" -l="${vm_username}:${vm_password}" -p="${get_update_count_pid}" -X -json | jq '.processInfo[0].exitCode')
85
set -e
86
done
87
echo "Updates remaining: ${updates_remaining}"
0 commit comments