Skip to content

Commit

Permalink
bug(turbine): Adjust to new pipeline log (#285)
Browse files Browse the repository at this point in the history
* Adjust to pipeline log reformat and updated regex for valid app names
  • Loading branch information
janelletavares authored Mar 25, 2022
1 parent 7efc1df commit b4c92f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/meroxa/turbine_cli/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ func GitChecks(ctx context.Context, l log.Logger, appPath string) error {
func GetPipelineUUID(output string) string {
// Example output:
// 2022/03/16 13:21:36 pipeline created: "turbine-pipeline-simple" ("049760a8-a3d2-44d9-b326-0614c09a3f3e").
re := regexp.MustCompile(`pipeline created:."[a-zA-Z]+-[a-zA-Z]+-[a-zA-Z]+".(\([^)]*\))`)
re := regexp.MustCompile(`pipeline:."turbine-pipeline-[a-z0-9-]+".(\([^)]*\))`)
res := re.FindStringSubmatch(output)[1]
res = strings.Trim(res, "()\"")
return res
Expand Down

0 comments on commit b4c92f5

Please sign in to comment.