Merge "Force lower-case for hostname lookup"

This commit is contained in:
Zuul 2019-01-10 07:36:52 +00:00 committed by Gerrit Code Review
commit 03c9571b73
1 changed files with 1 additions and 1 deletions

View File

@ -1064,7 +1064,7 @@ def get_short_hostname():
"""
p = subprocess.Popen(["hostname", "-s"], stdout=subprocess.PIPE,
universal_newlines=True)
return p.communicate()[0].rstrip()
return p.communicate()[0].rstrip().lower()
def wait_api_port_ready(api_port, host='127.0.0.1'):