Skip to content
This repository was archived by the owner on May 17, 2024. It is now read-only.

allow pass: key for redshift #482

Merged
merged 2 commits into from
Apr 11, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions data_diff/dbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,13 +488,15 @@ def set_connection(self):
"filepath": credentials.get("path"),
}
elif conn_type == "redshift":
if credentials.get("password") is None or credentials.get("method") == "iam":
if (credentials.get("pass") is None and credentials.get("password") is None) or credentials.get(
"method"
) == "iam":
raise Exception("Only password authentication is currently supported for Redshift.")
conn_info = {
"driver": conn_type,
"host": credentials.get("host"),
"user": credentials.get("user"),
"password": credentials.get("password"),
"password": credentials.get("password") or credentials.get("pass"),
"port": credentials.get("port"),
"dbname": credentials.get("dbname"),
}
Expand Down