Modified restore_database in db_schema.py to account for spaces in root_password

This commit is contained in:
Anand Doshi 2011-07-08 11:47:13 +05:30
parent 531a9fe0e3
commit 088b6429da

View file

@ -358,7 +358,7 @@ class DbManager:
mysql = mysql_path and os.path.join(mysql_path, 'mysql') or 'mysql'
try:
ret = os.system("%s -u root -p%s %s < %s"%(mysql, root_password, target, source))
ret = os.system("%s -u root -p%s %s < %s"%(mysql, root_password.replace(" ", "\ ")), target, source))
except Exception,e:
raise e