From e3111329f1bf82d07859ffdb8cf3e98fdd5cb2ad Mon Sep 17 00:00:00 2001
From: Steve Baker <sbaker@redhat.com>
Date: Wed, 19 Jun 2013 13:57:31 +1200
Subject: [PATCH] Use heat-manage to sync heat db.

heat-db-setup has been deprecated and doesn't work when
devstack uses postgres and mysql isn't installed.

This is causing postgres gating to fail for heat.

Change-Id: I84f0a2d40f0033e52c87b6f0c9c7265471134ffe
---
 lib/heat | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/heat b/lib/heat
index 4d2f84e1c4..13bf130b15 100644
--- a/lib/heat
+++ b/lib/heat
@@ -158,7 +158,7 @@ function init_heat() {
     # (re)create heat database
     recreate_database heat utf8
 
-    $HEAT_DIR/bin/heat-db-setup $os_PACKAGE -r $DATABASE_PASSWORD
+    $HEAT_DIR/bin/heat-manage db_sync
     create_heat_cache_dir
 }