Skip to content

Commit

Permalink
Adding log to ReadPipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
james2791 committed Jul 24, 2023
1 parent 34d4f38 commit df6f966
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buildkite/resource_pipeline.go
Original file line number Diff line number Diff line change
Expand Up @@ -407,12 +407,13 @@ func CreatePipeline(ctx context.Context, d *schema.ResourceData, m interface{})
func ReadPipeline(ctx context.Context, d *schema.ResourceData, m interface{}) diag.Diagnostics {
client := m.(*Client)

log.Printf("Reading pipeline with ID %s ...", d.Id())
apiResponse, err := getNode(client.genqlient, d.Id())

if err != nil {
return diag.FromErr(err)
}

// Convert fron Node to getNodePipeline type
if pipelineNode, ok := apiResponse.GetNode().(*getNodeNodePipeline); ok {
if pipelineNode == nil {
Expand Down

0 comments on commit df6f966

Please sign in to comment.