Merge "Raises BadRequest for grant_access on ignore_dbs"

This commit is contained in:
Jenkins 2014-02-14 19:51:56 +00:00 committed by Gerrit Code Review
commit e6d3fd744f

View File

@ -384,7 +384,7 @@ class MySqlAdmin(object):
try:
mydb.name = database
except ValueError:
LOG.info(_(
raise exception.BadRequest(_(
"Grant access to %s is not allowed") % database)
g = sql_query.Grant(permissions='ALL', database=mydb.name,