From 9c64a3607a8590efa341e30e585d5972904de905 Mon Sep 17 00:00:00 2001 From: Ben Nemec Date: Thu, 20 Dec 2018 16:06:22 +0000 Subject: [PATCH] Force lower-case for hostname lookup As in acd1bed60752efbe1d40a80583f0bb696b63fe07 where we started forcing all hostnames to lower-case in order to avoid case discrepancies. Not doing this is currently breaking standalone deployments where the host system has capital letters in its hostname. Change-Id: If697a5a33b6bf56f62b038f9f0009e46a90e5ce9 Closes-Bug: 1809273 --- tripleoclient/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tripleoclient/utils.py b/tripleoclient/utils.py index 982c0f831..ad046eaa3 100644 --- a/tripleoclient/utils.py +++ b/tripleoclient/utils.py @@ -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'):