Merge "check ceilometer conf exist before grep it"

This commit is contained in:
Jenkins 2015-06-09 23:06:35 +00:00 committed by Gerrit Code Review
commit 0ca9175e52

View File

@ -1,4 +1,7 @@
register_project_for_upgrade ceilometer
if [ ! -f /etc/ceilometer/ceilometer.conf ]; then
return
fi
if grep -q 'connection *= *mysql' /etc/ceilometer/ceilometer.conf; then
register_db_to_save ceilometer
fi
register_db_to_save ceilometer
fi