Skip to content

Commit

Permalink
fix: [ASSMT-284]: Reverted pipeline name enforcing
Browse files Browse the repository at this point in the history
  • Loading branch information
danielGz committed Mar 25, 2024
1 parent e772055 commit b74e7fc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pipelines.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ func migrateSpinnakerPipelines() error {
if len(migrationReq.SpinnakerAppName) == 0 {
migrationReq.SpinnakerAppName = TextInput("Please provide the Spinnaker application name : ")
}
if len(migrationReq.PipelineName) == 0 {
if !migrationReq.All {
migrationReq.PipelineName = TextInput("Please provide the Spinnaker pipeline name : ")
}

Expand Down Expand Up @@ -378,6 +378,12 @@ func createSpinnakerPipelines(pipelines interface{}) (reqId string, err error) {
OrgIdentifier: migrationReq.OrgIdentifier,
AccountIdentifier: migrationReq.Account,
}
j, err := json.MarshalIndent(pipelines, "", " ")
if err != nil {
log.Error(err)
}
str := string(j)
log.Info(str)
url := GetUrlWithQueryParams(migrationReq.Environment, MigratorService, "spinnaker/pipelines", queryParams)
resp, err := Post(url, migrationReq.Auth, pipelines)
if err != nil {
Expand Down

0 comments on commit b74e7fc

Please sign in to comment.