Skip to content

Commit

Permalink
fix: change ssl_mode to sslmode (#408)
Browse files Browse the repository at this point in the history
* fix: change ssl_mode to sslmode

* fix: remove comma causing sslkey=(None,) when MF_METADATA_DB_SSL_KEY_PATH not defined
  • Loading branch information
rswigginton authored Jan 18, 2024
1 parent b5b61d1 commit da31cdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion run_goose.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def main():
ssl_root_cert_path = os.environ.get("MF_METADATA_DB_SSL_ROOT_CERT")

if ssl_mode in ['allow', 'prefer', 'require', 'verify-ca', 'verify-full']:
ssl_query = f'ssl_mode={ssl_mode}'
ssl_query = f'sslmode={ssl_mode}'
if ssl_cert_path is not None:
ssl_query = f'{ssl_query}&sslcert={ssl_cert_path}'
if ssl_key_path is not None:
Expand Down
2 changes: 1 addition & 1 deletion services/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ def __init__(self,
self._database_name = os.environ.get(prefix + "NAME", database_name)
self._ssl_mode = os.environ.get(prefix + "SSL_MODE", ssl_mode)
self._ssl_cert_path = os.environ.get(prefix + "SSL_CERT_PATH", ssl_cert_path)
self._ssl_key_path = os.environ.get(prefix + "SSL_KEY_PATH", ssl_key_path),
self._ssl_key_path = os.environ.get(prefix + "SSL_KEY_PATH", ssl_key_path)
self._ssl_root_cert_path = os.environ.get(prefix + "SSL_ROOT_CERT_PATH", ssl_root_cert_path)
conn_str_required_values = [
self._host,
Expand Down

0 comments on commit da31cdc

Please sign in to comment.