Skip to content

Commit

Permalink
Remove targethost
Browse files Browse the repository at this point in the history
  • Loading branch information
remibergsma committed Oct 13, 2023
1 parent 255c32f commit 09b0e41
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions rolling_reboot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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']
Expand Down

0 comments on commit 09b0e41

Please sign in to comment.