<s> from lib import action <EOL> class ConsulQueryServiceAction ( action . ConsulBaseAction ) : <EOL> def run ( self , service , tag = None ) : <EOL> index , service = self . consul . catalog . service ( service , tag = tag ) <EOL> addresses = [ node [ '<STR_LIT>' ] for node in service ] <EOL> return '<STR_LIT:U+002C>' . join ( addresses ) </s>
