def action_list(self):
format = "<STR_LIT>"<EOL>print(format % ("<STR_LIT>", "<STR_LIT>", "<STR_LIT>"))<EOL>for host, details in sorted(self.client.get_all().items()):<EOL><INDENT>if details[<NUM_LIT:0>] in ("<STR_LIT>", "<STR_LIT>"):<EOL><INDENT>action = "<STR_LIT>" % (<EOL>details[<NUM_LIT:0>],<EOL>"<STR_LIT:U+002C>".join(<EOL>"<STR_LIT>" % (host, port)<EOL>for host, port in details[<NUM_LIT:1>]['<STR_LIT>']<EOL>)<EOL>)<EOL><DEDENT>elif details[<NUM_LIT:0>] == "<STR_LIT>":<EOL><INDENT>action = "<STR_LIT>" % (<EOL>details[<NUM_LIT:0>],<EOL>details[<NUM_LIT:1>]['<STR_LIT:type>'],<EOL>)<EOL><DEDENT>elif details[<NUM_LIT:0>] == "<STR_LIT>":<EOL><INDENT>action = "<STR_LIT>" % (<EOL>details[<NUM_LIT:0>],<EOL>details[<NUM_LIT:1>]['<STR_LIT>'],<EOL>)<EOL><DEDENT>elif details[<NUM_LIT:0>] == "<STR_LIT>":<EOL><INDENT>action = "<STR_LIT>" % (<EOL>details[<NUM_LIT:0>],<EOL>details[<NUM_LIT:1>]['<STR_LIT:code>'],<EOL>)<EOL><DEDENT>else:<EOL><INDENT>action = details[<NUM_LIT:0>]<EOL><DEDENT>print(format % (host, action, details[<NUM_LIT:2>]))<EOL><DEDENT>
Lists all hosts on the LB