Skip to content

Commit

Permalink
run go fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
zarbis committed Mar 14, 2022
1 parent ffda357 commit 42504ed
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion client/pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ type Spec struct {
FailFast *bool `json:"fail_fast,omitempty"`
RuntimeEnvironment RuntimeEnvironment `json:"runtimeEnvironment,omitempty"`
TerminationPolicy []map[string]interface{} `json:"terminationPolicy,omitempty"`
PackId string `json:"packId,omitempty"`
PackId string `json:"packId,omitempty"`
Hooks *Hooks `json:"hooks,omitempty"`
Options map[string]bool `json:"options,omitempty"`
}
Expand Down
5 changes: 2 additions & 3 deletions codefresh/resource_pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,12 +509,11 @@ func flattenSpec(spec cfClient.Spec) []interface{} {
m["options"] = resOptions
}

m["pack_id"] = spec.PackId
m["pack_id"] = spec.PackId
m["concurrency"] = spec.Concurrency
m["branch_concurrency"] = spec.BranchConcurrency
m["trigger_concurrency"] = spec.TriggerConcurrency


m["priority"] = spec.Priority

m["contexts"] = spec.Contexts
Expand Down Expand Up @@ -639,7 +638,7 @@ func mapResourceToPipeline(d *schema.ResourceData) *cfClient.Pipeline {
OriginalYamlString: originalYamlString,
},
Spec: cfClient.Spec{
PackId: d.Get("spec.0.pack_id").(string),
PackId: d.Get("spec.0.pack_id").(string),
Priority: d.Get("spec.0.priority").(int),
Concurrency: d.Get("spec.0.concurrency").(int),
BranchConcurrency: d.Get("spec.0.branch_concurrency").(int),
Expand Down

0 comments on commit 42504ed

Please sign in to comment.