Compare commits

...

2 Commits

Author SHA1 Message Date
Doug Beatty
f78972e5ae Changelog entry 2023-05-11 14:05:25 -06:00
Doug Beatty
d6c72cf07c Honor --skip-profile-setup parameter when inside an existing project 2023-05-11 13:59:57 -06:00
2 changed files with 11 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
kind: Fixes
body: Honor `--skip-profile-setup` parameter when inside an existing project
time: 2023-05-11T14:04:41.382181-06:00
custom:
Author: dbeatty10
Issue: "7594"

View File

@@ -258,6 +258,11 @@ class InitTask(BaseTask):
if in_project:
# When dbt init is run inside an existing project,
# just setup the user's profile.
# Ask for adapter only if skip_profile_setup flag is not provided.
if self.args.skip_profile_setup:
return
fire_event(SettingUpProfile())
profile_name = self.get_profile_name_from_current_project()
if not self.check_if_can_write_profile(profile_name=profile_name):