'List the hosts in the current group'

def do_list(self, arg):

    if (arg == 'groups'):
        for group in self.groups:
            display.display(group)
    else:
        for host in self.selected:
            display.display(host.name)
