Skip to content

Commit

Permalink
add register_adapter to dbt debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Beck committed Oct 14, 2019
1 parent 14d8683 commit 7591675
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/dbt/task/debug.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import dbt.utils
import dbt.exceptions
from dbt.links import ProfileConfigDocs
from dbt.adapters.factory import get_adapter
from dbt.adapters.factory import get_adapter, register_adapter
from dbt.version import get_installed_version
from dbt.config import Project, Profile
from dbt.clients.yaml_helper import load_yaml_text
Expand Down Expand Up @@ -270,6 +270,7 @@ def attempt_connection(profile):
"""Return a string containing the error message, or None if there was
no error.
"""
register_adapter(profile)
adapter = get_adapter(profile)
try:
with adapter.connection_named('debug'):
Expand Down

0 comments on commit 7591675

Please sign in to comment.