Skip to content

Commit 8072b60

Browse files
authored
Fix flow background update (#566)
This change fixes #482 so that the flow background can be changed.
2 parents 5ba2f9e + b338c17 commit 8072b60

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

internal/provider/resource_flow.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,15 @@ func resourceFlowUpdate(ctx context.Context, d *schema.ResourceData, m interface
155155
}
156156

157157
d.SetId(res.Slug)
158+
159+
if bg, ok := d.GetOk("background"); ok {
160+
hr, err := c.client.FlowsApi.FlowsInstancesSetBackgroundUrlCreate(ctx, res.Slug).FilePathRequest(api.FilePathRequest{
161+
Url: bg.(string),
162+
}).Execute()
163+
if err != nil {
164+
return httpToDiag(d, hr, err)
165+
}
166+
}
158167
return resourceFlowRead(ctx, d, m)
159168
}
160169

0 commit comments

Comments
 (0)