From 4a6ddde8a76135f28f5b1388a02a6be85f754088 Mon Sep 17 00:00:00 2001 From: Kent Huang Date: Wed, 18 Oct 2023 18:50:40 +0800 Subject: [PATCH] [Fix] E2E test failed issue Signed-off-by: Kent Huang --- piperider_cli/runner.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/piperider_cli/runner.py b/piperider_cli/runner.py index 285e06572..75c5c61df 100644 --- a/piperider_cli/runner.py +++ b/piperider_cli/runner.py @@ -644,11 +644,12 @@ def exec(datasource=None, table=None, output=None, skip_report=False, dbt_target if skip_datasource_connection: event_payload.skip_datasource = True - console.rule('DBT') - console.print('Profile: ', style='bold', end='') - console.print(f'{configuration.dbt.get("profile")}', style='cyan') - console.print('Target: ', style='bold', end='') - console.print(f'{configuration.dbt.get("target")}', style='cyan') + if configuration.dbt: + console.rule('DBT') + console.print('Profile: ', style='bold', end='') + console.print(f'{configuration.dbt.get("profile")}', style='cyan') + console.print('Target: ', style='bold', end='') + console.print(f'{configuration.dbt.get("target")}', style='cyan') # Validating console.rule('Validating')