diff options
author | Scott Dodson <sdodson@redhat.com> | 2016-08-12 10:18:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-12 10:18:00 -0400 |
commit | 34c9ba2d290cb84a79315343f9155d5081f2896f (patch) | |
tree | ee9150c1e8dd8a651a040bc9e5e3aa75034e9e96 /utils/src/ooinstall/cli_installer.py | |
parent | 7060379b8e9344a882678f59a3677034436c0905 (diff) | |
parent | fe43a8d46b47a103a4daff7d933c61a62ec42e1d (diff) | |
download | openshift-34c9ba2d290cb84a79315343f9155d5081f2896f.tar.gz openshift-34c9ba2d290cb84a79315343f9155d5081f2896f.tar.bz2 openshift-34c9ba2d290cb84a79315343f9155d5081f2896f.tar.xz openshift-34c9ba2d290cb84a79315343f9155d5081f2896f.zip |
Merge pull request #2290 from smunilla/BZ1357627
a-o-i: Fix broken upgrades
Diffstat (limited to 'utils/src/ooinstall/cli_installer.py')
-rw-r--r-- | utils/src/ooinstall/cli_installer.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/utils/src/ooinstall/cli_installer.py b/utils/src/ooinstall/cli_installer.py index 2975592a1..e197c722d 100644 --- a/utils/src/ooinstall/cli_installer.py +++ b/utils/src/ooinstall/cli_installer.py @@ -1,5 +1,3 @@ -# TODO: Temporarily disabled due to importing old code into openshift-ansible -# repo. We will work on these over time. # pylint: disable=bad-continuation,missing-docstring,no-self-use,invalid-name,no-value-for-parameter,too-many-lines import os @@ -884,7 +882,6 @@ def uninstall(ctx): #pylint: disable=bad-builtin,too-many-statements def upgrade(ctx, latest_minor, next_major): oo_cfg = ctx.obj['oo_cfg'] - verbose = ctx.obj['verbose'] if len(oo_cfg.deployment.hosts) == 0: click.echo("No hosts defined in: %s" % oo_cfg.config_path) @@ -955,7 +952,9 @@ def upgrade(ctx, latest_minor, next_major): click.echo("Upgrade cancelled.") sys.exit(0) - retcode = openshift_ansible.run_upgrade_playbook(playbook, verbose) + retcode = openshift_ansible.run_upgrade_playbook(oo_cfg.deployment.hosts, + playbook, + ctx.obj['verbose']) if retcode > 0: click.echo("Errors encountered during upgrade, please check %s." % oo_cfg.settings['ansible_log_path']) |