From 09b0e41636e52b61e7f62cec1216ebe8d22fa85a Mon Sep 17 00:00:00 2001 From: Remi Bergsma Date: Fri, 13 Oct 2023 16:19:44 +0200 Subject: [PATCH] Remove targethost --- rolling_reboot.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rolling_reboot.py b/rolling_reboot.py index 8783075..38ba83e 100755 --- a/rolling_reboot.py +++ b/rolling_reboot.py @@ -49,9 +49,8 @@ @click.option('--proxy-host', help='Hypervisor the migrate VMS to, after which we migrate them back to origin', required=False) @click_log.simple_verbosity_option(logging.getLogger(), default="INFO", show_default=True) @click.argument('cluster') -@click.argument('target_host', required=False) def main(profile, ignore_hosts, only_hosts, skip_os_version, reboot_action, pre_empty_script, post_empty_script, - post_reboot_script, dry_run, proxy_host, cluster, target_host): + post_reboot_script, dry_run, proxy_host, cluster): """Perform rolling reboot of hosts in CLUSTER""" click_log.basic_config() @@ -105,8 +104,7 @@ def main(profile, ignore_hosts, only_hosts, skip_os_version, reboot_action, pre_ hosts.sort(key=itemgetter('name')) - if target_host: - target_host = co.get_host(name=target_host) + target_host = None for host in hosts: logging.slack_value = host['name']