call highstate in soup with a retry if first fails vs bailing

This commit is contained in:
reyesj2
2026-07-23 15:06:36 -05:00
parent e4c14a9294
commit f2d81cea3f
+7 -1
View File
@@ -442,7 +442,13 @@ get_soup_script_hashes() {
}
highstate() {
# Run a highstate.
# Run a highstate with a retry attempt.
if salt-call state.highstate -l info queue=True; then
return 0
fi
echo "Initial highstate attempt had a problem; retrying in 30 seconds."
sleep 30
salt-call state.highstate -l info queue=True
}