summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-01-09 17:42:55 -0500
committerGitHub <noreply@github.com>2017-01-09 17:42:55 -0500
commit39f18e9a9af4bfef44e71ba95ace06dfef7a8dbc (patch)
tree413d6b6f27c639c39ce478511020ced7f57c2b8b /utils
parent847bfb97009848e92edb587d6d792841c47ae4f5 (diff)
parent5540e990aca640181c6774f23a73dd492baf3e47 (diff)
downloadopenshift-39f18e9a9af4bfef44e71ba95ace06dfef7a8dbc.tar.gz
openshift-39f18e9a9af4bfef44e71ba95ace06dfef7a8dbc.tar.bz2
openshift-39f18e9a9af4bfef44e71ba95ace06dfef7a8dbc.tar.xz
openshift-39f18e9a9af4bfef44e71ba95ace06dfef7a8dbc.zip
Merge pull request #3061 from tbielawa/scaleup-bz1390135
The scaleup subcommand does not support the unattended option
Diffstat (limited to 'utils')
-rw-r--r--utils/src/ooinstall/cli_installer.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/utils/src/ooinstall/cli_installer.py b/utils/src/ooinstall/cli_installer.py
index b70bd1817..0bc9aa45e 100644
--- a/utils/src/ooinstall/cli_installer.py
+++ b/utils/src/ooinstall/cli_installer.py
@@ -1124,6 +1124,20 @@ def scaleup(ctx, gen_inventory):
click.echo('Welcome to the OpenShift Enterprise 3 Scaleup utility.')
+ # Scaleup requires manual data entry. Therefore, we do not support
+ # unattended operations.
+ if unattended:
+ msg = """
+---
+
+The 'scaleup' operation does not support unattended
+functionality. Re-run the installer without the '-u' or '--unattended'
+option to continue.
+"""
+ click.echo(msg)
+ sys.exit(1)
+
+ # Resume normal scaleup workflow
print_installation_summary(installed_hosts,
oo_cfg.settings['variant_version'],
verbose=False,)