File tree Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Expand file tree Collapse file tree 1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -81,21 +81,12 @@ def dbt_diff(
8181 org_meta = api .get_org_meta ()
8282
8383 if config .datasource_id is None :
84+ cloud_doc_url = "https://docs.datafold.com/development_testing/cloud"
8485 rich .print ("[red]Data source ID not found in dbt_project.yml" )
85- is_create_data_source = Confirm .ask ("Would you like to create a new data source?" )
86- if is_create_data_source :
87- config .datasource_id = get_or_create_data_source (api = api , dbt_parser = dbt_parser )
88- rich .print (f'To use the data source in next runs, please, update your "{ PROJECT_FILE } " with a block:' )
89- rich .print (f"[green]vars:\n data_diff:\n datasource_id: { config .datasource_id } \n " )
90- rich .print (
91- "Read more about Datafold vars in docs: "
92- "https://docs.datafold.com/os_diff/dbt_integration/#configure-a-data-source\n "
93- )
94- else :
95- raise ValueError (
96- "Datasource ID not found, include it as a dbt variable in the dbt_project.yml. "
97- "\n vars:\n data_diff:\n datasource_id: 1234"
98- )
86+ raise ValueError (
87+ "Datasource ID not found. Please include it as a dbt variable in the dbt_project.yml. Instructions: {cloud_doc_url}"
88+ "\n vars:\n data_diff:\n datasource_id: 1234"
89+ )
9990
10091 data_source = api .get_data_source (config .datasource_id )
10192 dbt_parser .set_casing_policy_for (connection_type = data_source .type )
You can’t perform that action at this time.
0 commit comments