Skip to content

Commit

Permalink
feat: [CDS-88642]: update Terrform destroy on templates should have b…
Browse files Browse the repository at this point in the history
…etter logging | Unclear error message (#869)

Co-authored-by: Meet Rathod <[email protected]>
  • Loading branch information
utkarshchoubey-harness and rathodmeetsatish authored Jan 23, 2024
1 parent 16f62cb commit 33a07ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/service/platform/template/resource_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package template

import (
"context"
"log"
"net/http"

"github.com/antihax/optional"
Expand Down Expand Up @@ -548,6 +549,7 @@ func resourceTemplateDelete(ctx context.Context, d *schema.ResourceData, meta in
version := d.Get("version").(string)
var httpResp *http.Response
var err error
log.Printf("[DEBUG] Deleting template with identifier %s and version %s", id, version)

if project_id != "" {
httpResp, err = c.ProjectTemplateApi.DeleteTemplateProject(ctx, project_id, id, org_id, version, &nextgen.ProjectTemplateApiDeleteTemplateProjectOpts{
Expand Down

0 comments on commit 33a07ee

Please sign in to comment.