Skip to content

Commit 710bb51

Browse files
authored
fix(tekton): fix null pointer pipeline issue (IBM-Cloud#5950)
1 parent 4c34f81 commit 710bb51

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ibm/service/cdtektonpipeline/data_source_ibm_cd_tekton_pipeline.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -880,7 +880,9 @@ func DataSourceIBMCdTektonPipelineWorkerToMap(model *cdtektonpipelinev2.Worker)
880880
if model.Type != nil {
881881
modelMap["type"] = *model.Type
882882
}
883-
modelMap["id"] = *model.ID
883+
if model.ID != nil {
884+
modelMap["id"] = *model.ID
885+
}
884886
return modelMap, nil
885887
}
886888

0 commit comments

Comments
 (0)