diff --git a/cmd/cli/app/datasource/common.go b/cmd/cli/app/datasource/common.go index 860ed3ca0d..522c513fd1 100644 --- a/cmd/cli/app/datasource/common.go +++ b/cmd/cli/app/datasource/common.go @@ -52,6 +52,10 @@ func executeOnOneDataSource( ds.Context.ProjectId = proj } + if err := ds.Validate(); err != nil { + return fmt.Errorf("error validating data source: %w", err) + } + // create or update the data source createdDS, err := exec(ctx, f, ds) if err != nil {