avoid unnecessary failure to delete a list of empty workflows

Improved execution output by avoiding confusing errors.

Change-Id: I2b6b03b6ff0178564a21f6b3c8578ac2d5f19023
This commit is contained in:
Sorin Sbarnea 2018-08-23 19:30:20 +01:00
parent 792c26e28a
commit 66ae4e94eb

View File

@ -120,7 +120,9 @@ if [ "$(hiera mistral_api_enabled)" = "true" ]; then
openstack cron trigger delete publish-ui-logs-hourly
fi
openstack workflow delete $(openstack workflow list -c Name -f value --filter tags=tripleo-common-managed) || true;
for workflow in $(openstack workflow list -c Name -f value --filter tags=tripleo-common-managed); do
openstack workflow delete $workflow
done
for workbook in $(ls /usr/share/openstack-tripleo-common/workbooks/*); do
openstack workbook create $workbook