Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Job Runner: wrong usage of dbfilter in get_db_names #128

Closed
yelizariev opened this issue Oct 13, 2015 · 1 comment
Closed

Job Runner: wrong usage of dbfilter in get_db_names #128

yelizariev opened this issue Oct 13, 2015 · 1 comment

Comments

@yelizariev
Copy link
Member

job runner is not activated in case of using %d or %h in db_filter

def get_db_names(self):
    if openerp.tools.config['db_name']:
        db_names = openerp.tools.config['db_name'].split(',')
    else:
        db_names = openerp.service.db.exp_list()
    dbfilter = openerp.tools.config['dbfilter']
    if dbfilter:
        db_names = [d for d in db_names if re.match(dbfilter, d)]
    _logger.info('************************ get_db_names %s', [openerp.tools.config['db_name'], openerp.service.db.exp_list(), dbfilter])
    return db_names

log output:

2015-10-13 12:57:54,990 25521 INFO ? openerp.addons.connector.jobrunner.runner: ************************ get_db_names [False, [u'erp'], '^%d$']
@sbidoul
Copy link
Member

sbidoul commented Oct 13, 2015

It's a duplicate of #58. If you don't mind I'll close this one. Do not hesistate to reopen if needed.

@sbidoul sbidoul closed this as completed Oct 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants