def info(hosts, users=None): assert hosts log.debug("hosts='{}'".format(hosts)) errors = 0 for host in hosts: data = get_info(host, users=users) if data: print_info(data) else: errors += 1 return errors
def info(hosts, users=None): assert hosts log.debug("hosts='{}'".format(hosts)) for host in hosts: data = get_info(host, users=users) print_info(data)
def info(hosts, users=None): assert hosts for host in hosts: data = get_info(host, users=users) print_info(data)