Remove todo as mistral tag filtering is fixed

Fixed tag filtering in mistral so it is safe to remove the workaround
to delete workflows

Change-Id: I543c58047fa2113fa2d39e7f06d3697e9cedee11
Depends-On: Ie082901fd7eb8b61a6306da1275a79aeb6c4a6de
This commit is contained in:
Adriano Petrich 2018-04-10 10:21:52 +01:00
parent 70700644b0
commit af8f06b07e

View File

@ -113,16 +113,9 @@ if [ "$(hiera mistral_api_enabled)" = "true" ]; then
if openstack cron trigger show publish-ui-logs-hourly >/dev/null 2>&1; then
openstack cron trigger delete publish-ui-logs-hourly
fi
#TODO In the future we should be able to run something like
# openstack workflow list --filter=tag=tripleo-common-managed
# but right now this is broken in Mistral, so we'll fix later.
for workflow in $(openstack workflow list -c Name -c Tags | grep tripleo-common-managed); do
NAME=$(echo ${workflow} | awk '{print $2}')
TAG=$(echo ${workflow} | awk '{print $4}')
if echo $TAG | grep -q tripleo-common-managed; then
openstack workflow delete $NAME
fi
done
openstack workflow delete $(openstack workflow list -c Name -f value --filter tags=tripleo-common-managed) || true;
for workbook in $(ls /usr/share/openstack-tripleo-common/workbooks/*); do
openstack workbook create $workbook
done