Skip to content

Commit

Permalink
Adjust fix to project name so it works for other dags
Browse files Browse the repository at this point in the history
  • Loading branch information
tatiana committed Nov 5, 2024
1 parent ce08a25 commit 851ffee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cosmos/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,10 @@ def validate_adapted_user_config(
raise CosmosValueError(
"RenderConfig.dbt_project_path is required for rendering an airflow DAG from a DBT Graph if no manifest is provided."
)
else:

if render_config and hasattr(render_config, "project_path"):
# Project config is further expected to have project name
# even if it had no manifest
project_config.project_name = render_config.project_path.stem


Expand Down

0 comments on commit 851ffee

Please sign in to comment.