Fix hook script for Ironic

cleanup_ironic should not be started on "unstack" phase,
otherwise API service not restarted because auth cache
directory removed.

Change-Id: I3da86b9fb8c3ce1185aff05df0fa83cf259708f4
This commit is contained in:
Yuriy Zveryanskyy 2014-02-12 11:03:18 +02:00
parent 7719d4aca8
commit c86ec3568c

View File

@ -28,6 +28,9 @@ if is_service_enabled ir-api ir-cond; then
if [[ "$1" == "unstack" ]]; then
stop_ironic
fi
if [[ "$1" == "clean" ]]; then
cleanup_ironic
fi
fi