<s> from libcloud . loadbalancer . base import Member <EOL> from lib . actions import BaseAction <EOL> __all__ = [ <EOL> '<STR_LIT>' <EOL> ] <EOL> class BalancerAttachMemberAction ( BaseAction ) : <EOL> api_type = '<STR_LIT>' <EOL> def run ( self , credentials , balancer_id , member_ip , member_port ) : <EOL> driver = self . _get_driver_for_credentials ( credentials = credentials ) <EOL> balancer = driver . get_balancer ( balancer_id ) <EOL> member = Member ( id = None , ip = member_ip , port = member_port ) <EOL> record = driver . balancer_attach_member ( balancer = balancer , <EOL> member = member ) <EOL> return self . resultsets . formatter ( record ) </s>
