summaryrefslogtreecommitdiffstats
path: root/doctor_tests/installer/base.py
diff options
context:
space:
mode:
Diffstat (limited to 'doctor_tests/installer/base.py')
-rw-r--r--doctor_tests/installer/base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/doctor_tests/installer/base.py b/doctor_tests/installer/base.py
index 7e2658e5..b2270654 100644
--- a/doctor_tests/installer/base.py
+++ b/doctor_tests/installer/base.py
@@ -139,10 +139,10 @@ class BaseInstaller(object):
ret, url = client.ssh(cmd)
if ret:
raise Exception('Exec command to get transport from '
- 'controller(%s) in Apex installer failed, '
+ 'controller(%s) failed, '
'ret=%s, output=%s'
% (self.controllers[0], ret, url))
- else:
+ elif self.controllers[0] not in url:
# need to use ip instead of hostname
ret = (re.sub("@.*:", "@%s:" % self.controllers[0],
url[0].split("=", 1)[1]))