summaryrefslogtreecommitdiffstats
path: root/utils/src/ooinstall/oo_config.py
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2017-02-19 14:19:35 +0100
committerRodolfo Carvalho <rhcarvalho@gmail.com>2017-02-19 14:19:35 +0100
commitd565d455ce65adf8291180ed3f9684ea71b9d0c7 (patch)
tree0a0bc640878bccd7cbbdf8f09763ad151bc6ce69 /utils/src/ooinstall/oo_config.py
parente7cbe87fd35963666f8007b36a5168ffd84f6107 (diff)
downloadopenshift-d565d455ce65adf8291180ed3f9684ea71b9d0c7.tar.gz
openshift-d565d455ce65adf8291180ed3f9684ea71b9d0c7.tar.bz2
openshift-d565d455ce65adf8291180ed3f9684ea71b9d0c7.tar.xz
openshift-d565d455ce65adf8291180ed3f9684ea71b9d0c7.zip
Remove dead code in installer
Found using `vulture`, confirmed that code that was once used became unused in later commits after its introduction.
Diffstat (limited to 'utils/src/ooinstall/oo_config.py')
-rw-r--r--utils/src/ooinstall/oo_config.py15
1 files changed, 0 insertions, 15 deletions
diff --git a/utils/src/ooinstall/oo_config.py b/utils/src/ooinstall/oo_config.py
index cf14105af..9670c03bb 100644
--- a/utils/src/ooinstall/oo_config.py
+++ b/utils/src/ooinstall/oo_config.py
@@ -126,15 +126,6 @@ class Host(object):
""" Does this host have the etcd role """
return 'etcd' in self.roles
- def is_etcd_member(self, all_hosts):
- """ Will this host be a member of a standalone etcd cluster. """
- if not self.is_master():
- return False
- masters = [host for host in all_hosts if host.is_master()]
- if len(masters) > 1:
- return True
- return False
-
def is_dedicated_node(self):
""" Will this host be a dedicated node. (not a master) """
return self.is_node() and not self.is_master()
@@ -436,12 +427,6 @@ class OOConfig(object):
def __str__(self):
return self.yaml()
- def get_host(self, name):
- for host in self.deployment.hosts:
- if host.connect_to == name:
- return host
- return None
-
def get_host_roles_set(self):
roles_set = set()
for host in self.deployment.hosts: