@utils.arg('--zone', metavar='<zone>', default=None, help=_('Filters the list, returning only those hosts in the availability zone <zone>.'))
def do_host_list(cs, args):
 columns = ['host_name', 'service', 'zone']
 result = cs.hosts.list(args.zone)
 utils.print_list(result, columns)

@ utils . arg ( '--zone' , metavar = '<zone>' , default = None , help = _ ( 'Filters the list, returning only those hosts in the availability zone <zone>.' ) ) def do_host_list ( cs , args ) : columns = [ 'host_name' , 'service' , 'zone' ] result = cs . hosts . list ( args . zone ) utils . print_list ( result , columns )
list all hosts by service .