Merge "Fix mysql instance create failed when enable skip-name-resolve"

This commit is contained in:
Zuul 2017-11-08 21:21:49 +00:00 committed by Gerrit Code Review
commit 3f829a6aa9
1 changed files with 2 additions and 2 deletions

View File

@ -657,9 +657,9 @@ class BaseMySqlApp(object):
with all privileges similar to the root user.
"""
LOG.debug("Creating Trove admin user '%s'.", ADMIN_USER_NAME)
localhost = "localhost"
host = "127.0.0.1"
g = sql_query.Grant(permissions='ALL', user=ADMIN_USER_NAME,
host=localhost, grant_option=True, clear=password)
host=host, grant_option=True, clear=password)
t = text(str(g))
client.execute(t)
LOG.debug("Trove admin user '%s' created.", ADMIN_USER_NAME)