#NEWLINE# def ex_enable_balancer_session_persistence( self , balancer ) : #NEWLINE# #INDENT# "\n        Enables session persistence for a Balancer by setting the persistence\n        type to 'HTTP_COOKIE'.  This method blocks until the enable request\n        has been processed and the balancer is in a RUNNING state again.\n\n        :param balancer: Balancer to enable session persistence on.\n        :type  balancer: :class:`LoadBalancer`\n\n        :return: Updated Balancer.\n        :rtype: :class:`LoadBalancer`\n        " #NEWLINE# if ( not self . ex_enable_balancer_session_persistence_no_poll ( balancer ) ) : #NEWLINE# #INDENT# msg = 'Enable session persistence request not accepted' #NEWLINE# raise LibcloudError ( balancer , driver = self ) #NEWLINE# #UNINDENT# return self . _get_updated_balancer ( balancer )