Skip to content

Commit

Permalink
Fix use of check_env
Browse files Browse the repository at this point in the history
Prior implementation had the arguments in the wrong order
  • Loading branch information
austinweisgrau committed Oct 18, 2023
1 parent d7b39eb commit 5c16840
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions parsons/utilities/dbt.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,11 @@ def __init__(
"""
self.commands = commands
self.dbt_schema = check_env.check("DBT_SCHEMA", dbt_schema)
self.username = check_env.check(username, "REDSHIFT_USERNAME")
self.password = check_env.check(password, "REDSHIFT_PASSWORD")
self.host = check_env.check(host, "REDSHIFT_HOST")
self.port = check_env.check(port, "REDSHIFT_PORT")
self.db = check_env.check(db, "REDSHIFT_DB")
self.username = check_env.check("REDSHIFT_USERNAME", username)
self.password = check_env.check("REDSHIFT_PASSWORD", password)
self.host = check_env.check("REDSHIFT_HOST", host)
self.port = check_env.check("REDSHIFT_PORT", port)
self.db = check_env.check("REDSHIFT_DB", db)
self.dbt_project_directory = dbt_project_directory
self.raise_errors = raise_errors
self.dbt_logger = dbtLogger(
Expand Down

0 comments on commit 5c16840

Please sign in to comment.