Skip to content

Commit

Permalink
Bugfix/fix aws postgres endpoint (#1933)
Browse files Browse the repository at this point in the history
* do not constrain the endpoint
  • Loading branch information
sanderegg authored Nov 4, 2020
1 parent 2faf8ab commit 900830d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@


class PostgresSettings(BaseSettings):
dns: Optional[PostgresDsn] = None

# entrypoint
host: str
port: PortInt = 5432
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import trafaret as T
from aiohttp.web import Application
from pydantic import BaseSettings, constr
from pydantic import BaseSettings
from typing import Optional

from models_library.settings.postgres import PostgresSettings
Expand All @@ -25,7 +25,7 @@


class PgSettings(PostgresSettings):
endpoint: Optional[constr(strip_whitespace=True, regex=r"\w+:\d+")] = None
endpoint: Optional[str] = None # TODO: PC remove or deprecate that one

class Config:
fields = {"db": "database"}
Expand Down

0 comments on commit 900830d

Please sign in to comment.