Skip to content

Commit

Permalink
fix: [CDS-72546]: Fix panic on template create flow with incorrect ve…
Browse files Browse the repository at this point in the history
…rsion (#595)
  • Loading branch information
rohitk-h committed Jun 27, 2023
1 parent 8d8aa68 commit e597751
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/service/platform/template/resource_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,10 @@ func resourceTemplateCreateOrUpdate(ctx context.Context, d *schema.ResourceData,
}
}

if err != nil {
return helpers.HandleApiError(err, d, httpResp)
}

readTemplate(d, respGet, comments, store_type, base_branch, commit_message, connector_ref)

return nil
Expand Down

0 comments on commit e597751

Please sign in to comment.