(self)
setup clients based on the config
setup clients based on the config
setup clients based on the config
def _parse_config(self):
        """
        setup clients based on the config
        """
        if isinstance(self.config, list):
            for conn_settings in self.config:
                conn = self._build_client(conn_settings)

                if conn is not None:
                    self.clients[conn.id] = conn
                else:
                    self.log.error('connection creation failed')
        else:
            self.log.error('invalid connection configuration, needs to be a list')
def _parse_config ( self ) : if isinstance ( self . config , list ) : for conn_settings in self . config : conn = self . _build_client ( conn_settings ) if conn is not None : self . clients [ conn . id ] = conn else : self . log . error ( 'connection creation failed' ) else : self . log . error ( 'invalid connection configuration, needs to be a list' )