Skip to content

Commit

Permalink
Fix generating proper mysql connection url
Browse files Browse the repository at this point in the history
Previous string formatting was failing on Python 2.7.5.

Change-Id: I12dd3273d673c6b74565b2511280de9194a112ea
  • Loading branch information
matrixik committed Oct 12, 2016
1 parent 968f41f commit e92a952
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monasca_api/common/repositories/sqla/sql_repository.py
Expand Up @@ -39,7 +39,7 @@ def __init__(self):
self.conf.mysql.password,
self.conf.mysql.hostname,
self.conf.mysql.database_name)
url = make_url("mysql+pymysql://{}:{}@{}/{}" % settings_db)
url = make_url("mysql+pymysql://%s:%s@%s/%s" % settings_db)
else:
if self.conf.database.url is not None:
url = make_url(self.conf.database.url)
Expand Down

0 comments on commit e92a952

Please sign in to comment.