Merge "validations: Allow to customize the max retries"

This commit is contained in:
Zuul 2019-06-14 22:20:06 +00:00 committed by Gerrit Code Review
commit a916cdf805
2 changed files with 2 additions and 1 deletions

View File

@ -20,3 +20,4 @@ run_preintro_val_log: "{{ val_working_dir }}/run_preintro_validations_negative_t
validations_dir: "/usr/share/openstack-tripleo-validations/validations"
validations_static_inventory: "{{ val_working_dir }}/validations_static_inventory"
validations_max_retries: 40

View File

@ -49,7 +49,7 @@ for validation_name in $LIST_VALIDATIONS; do
sleep 1
STATE=$(mistral execution-get -f value -c State "$ID")
TRIES=$((TRIES+1))
if [ "$TRIES" -gt 40 ]; then
if [ "$TRIES" -gt {{ validations_max_retries }} ]; then
break
fi
done