mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Fir for broken V1 db connection (#11382)
This commit is contained in:
parent
15e7709ff6
commit
72179f45d3
@ -55,7 +55,7 @@ class DbSessionInjector(BaseModel, Injector[async_sessionmaker]):
|
||||
if self.user is None:
|
||||
self.user = os.getenv('DB_USER', 'postgres')
|
||||
if self.password is None:
|
||||
self.password = SecretStr(os.getenv('DB_PASS', 'postgres'))
|
||||
self.password = SecretStr(os.getenv('DB_PASS', 'postgres').strip())
|
||||
if self.gcp_db_instance is None:
|
||||
self.gcp_db_instance = os.getenv('GCP_DB_INSTANCE')
|
||||
if self.gcp_project is None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user