lin
2025-07-30 fcd736bf35fd93b563e9bbf594f2aa7b62028cc9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""Django settings for code that only needs readonly access to the database."""
 
import common
 
# This copies all the non-readonly settings into the readonly settings.
# We then overwrite the relevant settings to set readonly access.
# This allows us to update the generic settings without having duplicated
# entries between the readonly and non-readonly settings.
from autotest_lib.frontend.settings import *
 
 
AUTOTEST_DEFAULT['USER'] = AUTOTEST_DEFAULT['READONLY_USER']
AUTOTEST_DEFAULT['HOST'] = AUTOTEST_DEFAULT['READONLY_HOST']
AUTOTEST_DEFAULT['PASSWORD'] = AUTOTEST_DEFAULT['READONLY_PASSWORD']