diff options
author | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-02-19 14:19:35 +0100 |
---|---|---|
committer | Rodolfo Carvalho <rhcarvalho@gmail.com> | 2017-02-19 14:19:35 +0100 |
commit | d565d455ce65adf8291180ed3f9684ea71b9d0c7 (patch) | |
tree | 0a0bc640878bccd7cbbdf8f09763ad151bc6ce69 /utils/src/ooinstall/cli_installer.py | |
parent | e7cbe87fd35963666f8007b36a5168ffd84f6107 (diff) | |
download | openshift-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/cli_installer.py')
-rw-r--r-- | utils/src/ooinstall/cli_installer.py | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/utils/src/ooinstall/cli_installer.py b/utils/src/ooinstall/cli_installer.py index b787741d7..a6d784dea 100644 --- a/utils/src/ooinstall/cli_installer.py +++ b/utils/src/ooinstall/cli_installer.py @@ -72,12 +72,6 @@ You might want to override the default subdomain used for exposed routes. If you return click.prompt('New default subdomain (ENTER for none)', default='') -def list_hosts(hosts): - hosts_idx = range(len(hosts)) - for idx in hosts_idx: - click.echo(' {}: {}'.format(idx, hosts[idx])) - - def collect_hosts(oo_cfg, existing_env=False, masters_set=False, print_summary=True): """ Collect host information from user. This will later be filled in using @@ -656,20 +650,6 @@ https://docs.openshift.com/enterprise/latest/admin_guide/install/prerequisites.h return oo_cfg -def get_role_variable(oo_cfg, role_name, variable_name): - try: - target_role = next(role for role in oo_cfg.deployment.roles if role.name is role_name) - target_variable = target_role.variables[variable_name] - return target_variable - except (StopIteration, KeyError): - return None - - -def set_role_variable(oo_cfg, role_name, variable_name, variable_value): - target_role = next(role for role in oo_cfg.deployment.roles if role.name is role_name) - target_role[variable_name] = variable_value - - def collect_new_nodes(oo_cfg): click.clear() click.echo('*** New Node Configuration ***') |