Skip to content

Commit d3d8f2c

Browse files
[FIX] Parsing db_names from config
When trying to load queue_job module with `--load base,web,queue_job`, and specifying database either with command line option `-d` or with `db_name` variable in config, an error was raised: `AttributeError: 'list' object has no attribute 'split'`. It's due to a change in parsing `db_name` config variable. Previously the database name list was parsed as a string with coma-separated values. Currently, the config always returns a list.
1 parent 038c334 commit d3d8f2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

queue_job/jobrunner/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ def from_environ_or_config(cls):
473473

474474
def get_db_names(self):
475475
if config["db_name"]:
476-
db_names = config["db_name"].split(",")
476+
db_names = config["db_name"]
477477
else:
478478
db_names = odoo.service.db.list_dbs(True)
479479
return db_names

0 commit comments

Comments
 (0)