diff --git a/broker/providers/ansible_tower.py b/broker/providers/ansible_tower.py index c71f4343..1fc9ec29 100644 --- a/broker/providers/ansible_tower.py +++ b/broker/providers/ansible_tower.py @@ -549,7 +549,9 @@ def get_inventory(self, user=None): for inv in invs: inv_hosts = inv.get_related("hosts", page_size=200).results hosts.extend(inv_hosts) - return [self._compile_host_info(host) for host in hosts] + with click.progressbar(hosts, label='Compiling host information') as hosts_bar: + compiled_host_info = [self._compile_host_info(host) for host in hosts_bar] + return compiled_host_info def extend(self, target_vm, new_expire_time=None): """Run the extend workflow with defaults args