From 5540e990aca640181c6774f23a73dd492baf3e47 Mon Sep 17 00:00:00 2001
From: Tim Bielawa <tbielawa@redhat.com>
Date: Mon, 9 Jan 2017 12:45:02 -0800
Subject: The scaleup subcommand does not support the unattended option

* 'atomic-openshift-installer' will exit now if -u is given with the
  'scaleup' subcommand
* https://bugzilla.redhat.com/show_bug.cgi?id=1390135
---
 utils/src/ooinstall/cli_installer.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

(limited to 'utils')

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,)
-- 
cgit v1.2.3