Skip to content

Commit

Permalink
fix: disable init data if providing external database
Browse files Browse the repository at this point in the history
  • Loading branch information
fmartingr committed Dec 11, 2024
1 parent 4247ec2 commit dd27537
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/ltctl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func RunCreateCmdF(cmd *cobra.Command, args []string) error {
return fmt.Errorf("failed to create SSH agent: %w", err)
}

initData := config.DBDumpURI == ""
initData := config.DBDumpURI == "" || config.ExternalDBSettings.DataSource != ""
if err = t.Create(extAgent, initData); err != nil {
return fmt.Errorf("failed to create terraform env: %w", err)
}
Expand Down

0 comments on commit dd27537

Please sign in to comment.