Do not apply salt state if already applying a state

This commit is contained in:
Jason Ertel committed 2021-06-04 21:56:41 -04:00
1 parent e22421ec99
commit ba29b5e036
3 files changed
+6 -7

No files matched your search

+4 -2
View File
@@ -211,8 +211,10 @@ function syncElastic() {
echo "Database file does not exist yet, skipping users export"
fi
echo "Applying elastic state..."
salt-call state.apply elasticsearch queue=True
if [[ -z "$SKIP_STATE_APPLY" ]]; then
echo "Applying elastic state..."
salt-call state.apply elasticsearch queue=True
fi
}
function syncAll() {