Merge "Fix mysql instance create failed when enable skip-name-resolve" into stable/pike

This commit is contained in:
Zuul 2018-04-17 20:15:54 +00:00 committed by Gerrit Code Review
commit c3b1546b95
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)