Skip to content

Commit

Permalink
Import From Git fixed (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
vtxorxwitty committed Sep 14, 2023
1 parent 73897aa commit acc4bfa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/service/platform/input_set/input_set_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ func resourceInputSetCreateOrUpdate(ctx context.Context, d *schema.ResourceData,

if id == "" {
if d.Get("import_from_git").(bool) {
inputSet_id = d.Get("input_set_import_request.0.input_set_name").(string)
inputSet_id = d.Get("identifier").(string)

input_set_import_request_body := createImportFromGitRequest(d)

Expand Down
2 changes: 1 addition & 1 deletion internal/service/platform/pipeline/resource_pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ func resourcePipelineCreateOrUpdate(ctx context.Context, d *schema.ResourceData,

if id == "" {
if d.Get("import_from_git").(bool) {
pipeline_id = d.Get("pipeline_import_request.0.pipeline_name").(string)
pipeline_id = d.Get("identifier").(string)

pipeline_import_request_body := createImportFromGitRequest(d)

Expand Down
2 changes: 1 addition & 1 deletion internal/service/platform/template/resource_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ func resourceTemplateCreateOrUpdate(ctx context.Context, d *schema.ResourceData,

if d.Get("import_from_git").(bool) {

template_id = d.Get("template_import_request.0.template_name").(string)
template_id = d.Get("identifier").(string)

template_import_request_body := createImportFromGitRequestForTemplates(d)

Expand Down

0 comments on commit acc4bfa

Please sign in to comment.