From 56ab05b562093c5eaffa78b00f8b476568596b0c Mon Sep 17 00:00:00 2001 From: ismail simsek <6005685+ismailsimsek@users.noreply.github.com> Date: Mon, 16 Dec 2024 21:33:44 +0100 Subject: [PATCH] Fix dbt docs return value --- opendbt/__init__.py | 6 ++---- opendbt/dbt/v17/task/docs/generate.py | 3 ++- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/opendbt/__init__.py b/opendbt/__init__.py index 0636df8..f19b818 100644 --- a/opendbt/__init__.py +++ b/opendbt/__init__.py @@ -3,16 +3,14 @@ import sys from pathlib import Path -###################### -from dbt.cli.main import dbtRunner as DbtCliRunner - ###################### from opendbt.dbt import patch_dbt patch_dbt() -###################### from opendbt.utils import Utils +###################### +from dbt.cli.main import dbtRunner as DbtCliRunner from dbt.cli.main import dbtRunnerResult from dbt.config import PartialProject from dbt.contracts.graph.manifest import Manifest diff --git a/opendbt/dbt/v17/task/docs/generate.py b/opendbt/dbt/v17/task/docs/generate.py index 49db3d2..79f0020 100644 --- a/opendbt/dbt/v17/task/docs/generate.py +++ b/opendbt/dbt/v17/task/docs/generate.py @@ -20,5 +20,6 @@ def deploy_user_index_html(self): def run(self): # Call the original dbt run method - super().run() + result = super().run() self.deploy_user_index_html() + return result