diff --git a/client/pipeline.go b/client/pipeline.go index b22123d9..2d194829 100644 --- a/client/pipeline.go +++ b/client/pipeline.go @@ -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"` } diff --git a/codefresh/resource_pipeline.go b/codefresh/resource_pipeline.go index 023f141e..1c39253d 100644 --- a/codefresh/resource_pipeline.go +++ b/codefresh/resource_pipeline.go @@ -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 @@ -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),