summaryrefslogtreecommitdiffstats
path: root/utils/src/ooinstall/oo_config.py
diff options
context:
space:
mode:
authorDevan Goodwin <dgoodwin@redhat.com>2015-11-26 10:40:05 -0400
committerDevan Goodwin <dgoodwin@redhat.com>2015-11-26 10:40:05 -0400
commit139a82349040983a4af7ebd7e09e32a96bc00667 (patch)
tree77fb55db5044be0795be27c51b04f83ee8fdec8a /utils/src/ooinstall/oo_config.py
parent80c166ab60c4608ac83afb865f76b4206d593818 (diff)
downloadopenshift-139a82349040983a4af7ebd7e09e32a96bc00667.tar.gz
openshift-139a82349040983a4af7ebd7e09e32a96bc00667.tar.bz2
openshift-139a82349040983a4af7ebd7e09e32a96bc00667.tar.xz
openshift-139a82349040983a4af7ebd7e09e32a96bc00667.zip
Block re-use of master/node as load balancer in attended install.
Code was present to catch this in unattended installs but was looking for a host record with both master/node and master_lb set to true, but in the attended installs we were adding a separate host record with the same connect_to. Attended tests can now optionally specify multiple "attempted" strings for the master_lb specification, we'll try to input each if multiple are specified. Cleanup some empty defaults and error messages as well.
Diffstat (limited to 'utils/src/ooinstall/oo_config.py')
-rw-r--r--utils/src/ooinstall/oo_config.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/src/ooinstall/oo_config.py b/utils/src/ooinstall/oo_config.py
index b6f0cdce3..37aaf9197 100644
--- a/utils/src/ooinstall/oo_config.py
+++ b/utils/src/ooinstall/oo_config.py
@@ -50,8 +50,8 @@ class Host(object):
self.containerized = kwargs.get('containerized', False)
if self.connect_to is None:
- raise OOConfigInvalidHostError("You must specify either and 'ip' " \
- "or 'hostname' to connect to.")
+ raise OOConfigInvalidHostError("You must specify either an ip " \
+ "or hostname as 'connect_to'")
if self.master is False and self.node is False and self.master_lb is False:
raise OOConfigInvalidHostError(