yandextank/core/tankcore.py
def get_options(self, section, prefix=''):
        """ Get options list with requested prefix """
        res = []
        try:
            for option in self.config.options(section):
                if not prefix or option.find(prefix) == 0:
                    res += [(
                        option[len(prefix):], self.config.get(section, option))]
        except ConfigParser.NoSectionError as ex:
            logger.warning("No section: %s", ex)

        logger.debug(
            "Section: [%s] prefix: '%s' options:\n%s", section, prefix, res)
        return res
def get_options(self, section, prefix=''):
        res = []
        try:
            for option in self.config.options(section):
                if not prefix or option.find(prefix) == 0:
                    res += [(
                        option[len(prefix):], self.config.get(section, option))]
        except ConfigParser.NoSectionError as ex:
            logger.warning("No section: %s", ex)

        logger.debug(
            "Section: [%s] prefix: '%s' options:\n%s", section, prefix, res)
        return res
def get_options ( self , section , prefix = '' ) : res = [ ] try : for option in self . config . options ( section ) : if not prefix or option . find ( prefix ) == 0 : res += [ ( option [ len ( prefix ) : ] , self . config . get ( section , option ) ) ] except ConfigParser . NoSectionError as ex : logger . warning ( "No section: %s" , ex ) logger . debug ( "Section: [%s] prefix: '%s' options:\n%s" , section , prefix , res ) return res
Get options list with requested prefix
Get options list with requested prefix