From edb8b07c8487950ebb2fc13f7dbf9f5b6f7e1d45 Mon Sep 17 00:00:00 2001 From: Joshua Hesketh Date: Tue, 14 Oct 2014 16:09:12 +1100 Subject: [PATCH] Use global variables in db_sync Neaten things up and reduce confusion by using global variable names. Change-Id: I3007514ae286ce56589097594e0090f43407b67c --- .../real_db_upgrade/nova_mysql_migrations.sh | 53 +++++++------------ 1 file changed, 20 insertions(+), 33 deletions(-) diff --git a/turbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh b/turbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh index 30aa4f5..7652771 100755 --- a/turbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh +++ b/turbo_hipster/task_plugins/real_db_upgrade/nova_mysql_migrations.sh @@ -52,20 +52,14 @@ pip_requires() { } db_sync() { - # $1 is the test target - # $2 is the working dir path - # $3 is the path to the git repo path - # $4 is the nova db user - # $5 is the nova db password - # $6 is the nova db name - # $7 is the logging.conf for openstack - # $8 is an (optional) destination version number + # $1 is the test target (ie branch name) + # $2 is an (optional) destination version number # Create a nova.conf file - cat - > $2/nova-$1.conf < $WORKING_DIR_PATH/nova-$1.conf <