Skip to content

Commit

Permalink
fix: Fix review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ovidiupopa07 committed Mar 8, 2024
1 parent 2245c3f commit b86ec21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pipelines.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ func migrateSpinnakerPipelines() error {
if err != nil {
return err
}
pipelines, err = fetchDependentPipelines(pipelines, err, authMethod)
payload := map[string][]map[string]interface{}{"pipelines": pipelines}
_, err = createSpinnakerPipelines(payload)
return err
Expand Down Expand Up @@ -338,6 +339,9 @@ func findPipelineById(authMethod string, appName string, pipelineId string) (map
var err error
var pipelines []map[string]interface{}
jsonBody, err = getAllPipelines(authMethod, appName)
if err != nil {
return nil, err
}
pipelines, err = normalizeJsonArray(jsonBody)

if err != nil {
Expand Down

0 comments on commit b86ec21

Please sign in to comment.