Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bugfix: respect config options in dbt_project.yml #255

Merged
merged 13 commits into from
Dec 28, 2016
3 changes: 0 additions & 3 deletions dbt/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@


def read_config(profiles_dir=None):
if profiles_dir is None:
profiles_dir = default_profiles_dir

path = os.path.join(profiles_dir, 'profiles.yml')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think passing None to os.path.join causes a TypeError.

Previously, this file was assumed to be located at ~/.dbt/profiles.yml. We should either remove the default value for profiles_dir and insist that the caller passes a value, or we should coalesce None to the default filepath

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a good call. since read_config is part of the private API of this namespace, and calls have to go through send_anonymous_usage_stats, i just removed the default None value.


if os.path.isfile(path):
Expand Down