diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-11-10 14:39:20 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-10 14:39:20 -0500 |
commit | 6243a61a8bac0028367fe26d7478ff89f49005c7 (patch) | |
tree | 7a29c127a98871c4a7a1dd01ae7480d7b5319f1b /utils/src | |
parent | 7dee03d952cf048193de3c76e36520cde0a248e1 (diff) | |
parent | 539446529c347500f547da8be34757dbe59b79f7 (diff) | |
download | openshift-6243a61a8bac0028367fe26d7478ff89f49005c7.tar.gz openshift-6243a61a8bac0028367fe26d7478ff89f49005c7.tar.bz2 openshift-6243a61a8bac0028367fe26d7478ff89f49005c7.tar.xz openshift-6243a61a8bac0028367fe26d7478ff89f49005c7.zip |
Merge pull request #2779 from smunilla/BZ1339626
Update override cluster_hostname
Diffstat (limited to 'utils/src')
-rw-r--r-- | utils/src/ooinstall/cli_installer.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/src/ooinstall/cli_installer.py b/utils/src/ooinstall/cli_installer.py index 8470fb527..7e5ad4144 100644 --- a/utils/src/ooinstall/cli_installer.py +++ b/utils/src/ooinstall/cli_installer.py @@ -318,6 +318,7 @@ hostname. def set_cluster_hostname(oo_cfg): + first_master = next((host for host in oo_cfg.deployment.hosts if host.is_master()), None) message = """ You have chosen to install a single master cluster (non-HA). @@ -329,8 +330,9 @@ If you want to override the cluster host name now to something other than the de """ click.echo(message) cluster_hostname = click.prompt('Enter hostname or IP address', - default='') + default=str(first_master)) oo_cfg.deployment.variables['openshift_master_cluster_hostname'] = cluster_hostname + oo_cfg.deployment.variables['openshift_master_cluster_public_hostname'] = cluster_hostname def collect_storage_host(hosts): |