def elb_table(balancers):
t = prettytable.PrettyTable(['<STR_LIT:Name>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>'])<EOL>t.align = '<STR_LIT:l>'<EOL>for b in balancers:<EOL><INDENT>ports = ['<STR_LIT>' % (l[<NUM_LIT:2>], l[<NUM_LIT:0>], l[<NUM_LIT:1>]) for l in b.listeners]<EOL>ports = '<STR_LIT:\n>'.join(ports)<EOL>zones = '<STR_LIT:\n>'.join(b.availability_zones)<EOL>t.add_row([b.name, b.dns_name, ports, zones, b.created_time])<EOL><DEDENT>return t<EOL>
Print nice looking table of information from list of load balancers