Compare commits

...

4 Commits

Author SHA1 Message Date
Doug Beatty
ade867b000 Update changelog entry 2024-01-24 07:33:25 -07:00
Doug Beatty
ac96a168b9 Changelog entry 2024-01-24 07:31:39 -07:00
Doug Beatty
7d687b3d06 Consider it an error if no profile names are found 2024-01-24 07:30:20 -07:00
Doug Beatty
110066eb4b Add default summary_message 2024-01-24 07:30:20 -07:00
2 changed files with 10 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
kind: Fixes
body: Fix edge case where `summary_message` is not assigned in `dbt debug`
time: 2024-01-24T07:15:45.054862-07:00
custom:
Author: dbeatty10
Issue: "9436"

View File

@@ -231,6 +231,9 @@ class DebugTask(BaseTask):
self.target_name = self._choose_target_name(profile_name)
self.profile = profile
if len(profile_names) == 0:
profile_errors.append(summary_message)
if profile_errors:
details = "\n\n".join(profile_errors)
return SubtaskStatus(
@@ -273,6 +276,7 @@ class DebugTask(BaseTask):
# try to guess
profiles = []
summary_message = f" profile path <{self.profile_path}> not found\n"
if self.raw_profile_data:
profiles = [k for k in self.raw_profile_data if k != "config"]
if project_profile is None: