@@ -283,12 +283,17 @@ func (r *workflowResource) Create(ctx context.Context, req resource.CreateReques
283283 }
284284
285285 var inputs []devhub.WorkflowInput
286- for _ , input := range plan .Inputs {
287- inputs = append (inputs , devhub.WorkflowInput {
288- Key : input .Key .ValueString (),
289- Description : input .Description .ValueString (),
290- Type : input .Type .ValueString (),
291- })
286+ for _ , planInput := range plan .Inputs {
287+ input := devhub.WorkflowInput {
288+ Key : planInput .Key .ValueString (),
289+ Type : planInput .Type .ValueString (),
290+ }
291+
292+ if planInput .Description .ValueString () != "" {
293+ input .Description = planInput .Description .ValueString ()
294+ }
295+
296+ inputs = append (inputs , input )
292297 }
293298
294299 var steps []devhub.WorkflowStep
@@ -416,12 +421,17 @@ func (r *workflowResource) Read(ctx context.Context, req resource.ReadRequest, r
416421 }
417422
418423 var stateInputs []workflowInputModel
419- for _ , input := range workflow .Inputs {
420- stateInputs = append (stateInputs , workflowInputModel {
421- Key : types .StringValue (input .Key ),
422- Description : types .StringValue (input .Description ),
423- Type : types .StringValue (input .Type ),
424- })
424+ for _ , stateInput := range workflow .Inputs {
425+ input := workflowInputModel {
426+ Key : types .StringValue (stateInput .Key ),
427+ Type : types .StringValue (stateInput .Type ),
428+ }
429+
430+ if stateInput .Description != "" {
431+ input .Description = types .StringValue (stateInput .Description )
432+ }
433+
434+ stateInputs = append (stateInputs , input )
425435 }
426436
427437 state .Inputs = stateInputs
@@ -498,12 +508,17 @@ func (r *workflowResource) Update(ctx context.Context, req resource.UpdateReques
498508 }
499509
500510 var inputs []devhub.WorkflowInput
501- for _ , input := range plan .Inputs {
502- inputs = append (inputs , devhub.WorkflowInput {
503- Key : input .Key .ValueString (),
504- Description : input .Description .ValueString (),
505- Type : input .Type .ValueString (),
506- })
511+ for _ , planInput := range plan .Inputs {
512+ input := devhub.WorkflowInput {
513+ Key : planInput .Key .ValueString (),
514+ Type : planInput .Type .ValueString (),
515+ }
516+
517+ if planInput .Description .ValueString () != "" {
518+ input .Description = planInput .Description .ValueString ()
519+ }
520+
521+ inputs = append (inputs , input )
507522 }
508523
509524 var steps []devhub.WorkflowStep
0 commit comments